mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-13 07:34:45 +00:00
Fix mem leak discovered during previous commit
This commit is contained in:
parent
fcf52fb5e0
commit
ae94fc4e46
1 changed files with 4 additions and 0 deletions
|
|
@ -160,6 +160,10 @@ void Win32CursorController::setCursorShape( const UTF8 *fileName, bool reload )
|
||||||
|
|
||||||
if ( gCursorShape )
|
if ( gCursorShape )
|
||||||
SetCursor( gCursorShape );
|
SetCursor( gCursorShape );
|
||||||
|
|
||||||
|
#ifdef UNICODE
|
||||||
|
delete[] lFileName;
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
// Console function to set the current cursor shape given the cursor shape
|
// Console function to set the current cursor shape given the cursor shape
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue