Skip to content

Commit

Permalink
BLADERUNNER: Fix memory leaks in GameInfo
Browse files Browse the repository at this point in the history
  • Loading branch information
madmoose authored and sev- committed Sep 29, 2016
1 parent 97207bf commit 86b4850
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion engines/bladerunner/gameinfo.cpp
Expand Up @@ -106,7 +106,9 @@ bool GameInfo::open(const Common::String &name) {
debug("%2d: %s.VQA", i, _outtakes[i]);
}

return !s->err();
bool err = s->err();
delete s;
return !err;
}

} // End of namespace BladeRunner

0 comments on commit 86b4850

Please sign in to comment.