SAGA2: Fix memory leak
This commit is contained in:
parent
c452adaf1b
commit
f367c884cb
2 changed files with 6 additions and 0 deletions
|
@ -2509,6 +2509,8 @@ void initPrototypes(void) {
|
|||
}
|
||||
nameListCount = count;
|
||||
|
||||
delete stream;
|
||||
|
||||
// Load the Object prototype table
|
||||
|
||||
objectProtoCount = listRes->size(objProtoID)
|
||||
|
@ -2968,6 +2970,8 @@ void initObjects(void) {
|
|||
resourceObjectList.push_back(res);
|
||||
}
|
||||
|
||||
delete stream;
|
||||
|
||||
for (i = 0; i < resourceObjectCount; i++) {
|
||||
GameObject *obj = &objectList[i];
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue