Переглянути джерело

Fix potential memory leak.

Christopher Reed 12 роки тому
батько
коміт
0d36ca7cd4
1 змінених файлів з 1 додано та 0 видалено
  1. 1 0
      Core/Contents/Source/PolySDLCore.cpp

+ 1 - 0
Core/Contents/Source/PolySDLCore.cpp

@@ -931,6 +931,7 @@ void set_cursor(int cursorType) {
 }
 
 void free_cursors() {
+	XUndefineCursor(SDL_Display, SDL_Window);
 	for(int i = 0; i < CURSOR_COUNT; i++) {
 		if(defined_cursors[i]) {
 			XFreeCursor(SDL_Display, defined_cursors[i]);