浏览代码

Fix mem leak discovered during previous commit

Ben Payne 10 年之前
父节点
当前提交
ae94fc4e46
共有 1 个文件被更改,包括 4 次插入0 次删除
  1. 4 0
      Engine/source/windowManager/win32/win32CursorController.cpp

+ 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