Fix leak/crash on shutdown on Linux
This commit is contained in:
parent
4e7076802d
commit
41ad9b2776
|
|
@ -67,6 +67,8 @@ TinyXGraphicsWindow::
|
|||
XFreeGC(_display, _gc);
|
||||
}
|
||||
if (_ximage != NULL) {
|
||||
PANDA_FREE_ARRAY(_ximage->data);
|
||||
_ximage->data = NULL;
|
||||
XDestroyImage(_ximage);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue