mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-04 02:42:49 -04:00
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…
x
Reference in New Issue
Block a user