Browse Source

Fix leak/crash on shutdown on Linux

rdb 16 years ago
parent
commit
41ad9b2776
1 changed files with 2 additions and 0 deletions
  1. 2 0
      panda/src/tinydisplay/tinyXGraphicsWindow.cxx

+ 2 - 0
panda/src/tinydisplay/tinyXGraphicsWindow.cxx

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