Forráskód Böngészése

Fix mem leak discovered during previous commit

Ben Payne 10 éve
szülő
commit
ae94fc4e46

+ 4 - 0
Engine/source/windowManager/win32/win32CursorController.cpp

@@ -160,6 +160,10 @@ void Win32CursorController::setCursorShape( const UTF8 *fileName, bool reload )
    
    if ( gCursorShape )
       SetCursor( gCursorShape );
+
+#ifdef UNICODE
+   delete[] lFileName;
+#endif
 }
 
 // Console function to set the current cursor shape given the cursor shape