diff --git a/Engine/source/windowManager/win32/win32CursorController.cpp b/Engine/source/windowManager/win32/win32CursorController.cpp index ca8a12563..ba19b0979 100644 --- a/Engine/source/windowManager/win32/win32CursorController.cpp +++ b/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