mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-02-12 19:31:41 +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 )
|
||||
SetCursor( gCursorShape );
|
||||
|
||||
#ifdef UNICODE
|
||||
delete[] lFileName;
|
||||
#endif
|
||||
}
|
||||
|
||||
// Console function to set the current cursor shape given the cursor shape
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue