From ae94fc4e46a1f078ff158575d06cb489d3fda6bd Mon Sep 17 00:00:00 2001 From: Ben Payne Date: Fri, 23 Jan 2015 16:10:20 -0500 Subject: [PATCH] Fix mem leak discovered during previous commit --- Engine/source/windowManager/win32/win32CursorController.cpp | 4 ++++ 1 file changed, 4 insertions(+) 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