SAGA2: Fix memory leak

This commit is contained in:
a/ 2021-06-23 19:28:54 +09:00 committed by Eugene Sandulenko
parent c452adaf1b
commit f367c884cb
No known key found for this signature in database
GPG key ID: 014D387312D34F08
2 changed files with 6 additions and 0 deletions

View file

@ -3439,6 +3439,8 @@ void initActors(void) {
resourceActorList.push_back(res);
}
delete stream;
for (i = 0; i < resourceActorCount; i++) {
Actor *a = &actorList[i];

View file

@ -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];