mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-01-19 20:24:49 +00:00
Fix mem leak discovered during previous commit
This commit is contained in:
parent
fcf52fb5e0
commit
ae94fc4e46
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue