Browse Source

x11display: Clean up cursor filename map after freeing it

Not essential, but slightly neater
rdb 2 years ago
parent
commit
86a1973f89
1 changed files with 1 additions and 0 deletions
  1. 1 0
      panda/src/x11display/x11GraphicsWindow.cxx

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

@@ -1028,6 +1028,7 @@ close_window() {
   for (auto item : _cursor_filenames) {
   for (auto item : _cursor_filenames) {
     XFreeCursor(_display, item.second);
     XFreeCursor(_display, item.second);
   }
   }
+  _cursor_filenames.clear();
 
 
   GraphicsWindow::close_window();
   GraphicsWindow::close_window();
 }
 }