Fix leak/crash on shutdown on Linux

This commit is contained in:
rdb 2010-01-29 14:17:58 +00:00
parent 4e7076802d
commit 41ad9b2776

View File

@ -67,6 +67,8 @@ TinyXGraphicsWindow::
XFreeGC(_display, _gc);
}
if (_ximage != NULL) {
PANDA_FREE_ARRAY(_ximage->data);
_ximage->data = NULL;
XDestroyImage(_ximage);
}
}