mirror of
https://github.com/scummvm/scummvm.git
synced 2026-06-20 05:45:29 +00:00
Fixed memory leaks in savegame restoring
svn-id: r44863
This commit is contained in:
@@ -114,6 +114,7 @@ void closeAllMenu(void);
|
||||
int removeFinishedScripts(scriptInstanceStruct *ptrHandle);
|
||||
void initBigVar3(void);
|
||||
void resetActorPtr(actorStruct *ptr);
|
||||
void removeAllScripts(scriptInstanceStruct *ptrHandle);
|
||||
|
||||
void MemoryList();
|
||||
void *MemoryAlloc(uint32 size, bool clearFlag, int32 lineNum, const char *fname);
|
||||
|
||||
@@ -665,6 +665,7 @@ void initVars(void) {
|
||||
|
||||
resetPreload();
|
||||
freeCTP();
|
||||
freeBackgroundIncrustList(&backgroundIncrustHead);
|
||||
|
||||
freezeCell(&cellHead, -1, -1, -1, -1, -1, 0);
|
||||
// TODO: unfreeze anims
|
||||
@@ -672,6 +673,8 @@ void initVars(void) {
|
||||
freeObjectList(&cellHead);
|
||||
removeAnimation(&actorHead, -1, -1, -1);
|
||||
|
||||
removeAllScripts(&relHead);
|
||||
removeAllScripts(&procHead);
|
||||
changeScriptParamInList(-1, -1, &procHead, -1, 0);
|
||||
removeFinishedScripts(&procHead);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user