From f41f3277eb6b0ae4d32c9c61380fdadd2471eaa6 Mon Sep 17 00:00:00 2001 From: "Maxwell J. Koo" Date: Tue, 21 Dec 2010 14:44:52 +0000 Subject: [PATCH] apply addendum patch by mjkoo --- panda/src/x11display/x11GraphicsWindow.cxx | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/panda/src/x11display/x11GraphicsWindow.cxx b/panda/src/x11display/x11GraphicsWindow.cxx index d20f636290..835be15c64 100644 --- a/panda/src/x11display/x11GraphicsWindow.cxx +++ b/panda/src/x11display/x11GraphicsWindow.cxx @@ -107,6 +107,11 @@ x11GraphicsWindow(GraphicsEngine *engine, GraphicsPipe *pipe, //////////////////////////////////////////////////////////////////// x11GraphicsWindow:: ~x11GraphicsWindow() { + pmap::iterator it; + + for (it = _cursor_filenames.begin(); it != _cursor_filenames.end(); it++) { + XFreeCursor(_display, it->second); + } } ////////////////////////////////////////////////////////////////////