mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-04 10:54:24 -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);
|
XFreeGC(_display, _gc);
|
||||||
}
|
}
|
||||||
if (_ximage != NULL) {
|
if (_ximage != NULL) {
|
||||||
|
PANDA_FREE_ARRAY(_ximage->data);
|
||||||
|
_ximage->data = NULL;
|
||||||
XDestroyImage(_ximage);
|
XDestroyImage(_ximage);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user