mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-27 05:32:45 +00:00
SLUDGE: Plug memory leak
This commit is contained in:
parent
eba2b4814b
commit
7f149136ca
@ -842,8 +842,10 @@ builtIn(anim) {
|
||||
|
||||
// Load the required sprite bank
|
||||
LoadedSpriteBank *sprBanky = g_sludge->_gfxMan->loadBankForAnim(fileNumber);
|
||||
if (!sprBanky)
|
||||
if (!sprBanky) {
|
||||
delete ba;
|
||||
return BR_ERROR; // File not found, fatal done already
|
||||
}
|
||||
ba->theSprites = sprBanky;
|
||||
|
||||
// Return value
|
||||
|
Loading…
x
Reference in New Issue
Block a user