Browse Source

Don't store two references to X11 Cursor, or we double free at shutdown

rdb 10 years ago
parent
commit
fe058dfb32
1 changed files with 0 additions and 1 deletions
  1. 0 1
      panda/src/x11display/x11GraphicsWindow.cxx

+ 0 - 1
panda/src/x11display/x11GraphicsWindow.cxx

@@ -2146,7 +2146,6 @@ get_cursor(const Filename &filename) {
   }
   }
   fi = _cursor_filenames.find(resolved);
   fi = _cursor_filenames.find(resolved);
   if (fi != _cursor_filenames.end()) {
   if (fi != _cursor_filenames.end()) {
-    _cursor_filenames[filename] = (*fi).second;
     return fi->second;
     return fi->second;
   }
   }