From fe058dfb3270492b9dd6887db15b03ce4eb4b145 Mon Sep 17 00:00:00 2001 From: rdb Date: Mon, 6 Jul 2015 10:29:44 +0200 Subject: [PATCH] Don't store two references to X11 Cursor, or we double free at shutdown --- panda/src/x11display/x11GraphicsWindow.cxx | 1 - 1 file changed, 1 deletion(-) diff --git a/panda/src/x11display/x11GraphicsWindow.cxx b/panda/src/x11display/x11GraphicsWindow.cxx index 5195b8ac5d..5e4e7ee88c 100644 --- a/panda/src/x11display/x11GraphicsWindow.cxx +++ b/panda/src/x11display/x11GraphicsWindow.cxx @@ -2146,7 +2146,6 @@ get_cursor(const Filename &filename) { } fi = _cursor_filenames.find(resolved); if (fi != _cursor_filenames.end()) { - _cursor_filenames[filename] = (*fi).second; return fi->second; }