mirror of
https://github.com/libretro/scummvm.git
synced 2025-02-01 00:12:59 +00:00
missed destroy object after last changes
svn-id: r15843
This commit is contained in:
parent
a7b7a281f1
commit
5748227adc
@ -64,8 +64,10 @@ bool WalkthroughDialog::loadWalkthroughText() {
|
||||
|
||||
sprintf(filename, "%s.wkt", _gameName);
|
||||
file->open(filename);
|
||||
if (!file->isOpen())
|
||||
if (!file->isOpen()) {
|
||||
delete file;
|
||||
return false;
|
||||
}
|
||||
int bufferSize = file->size();
|
||||
byte *buffer = (byte *)malloc(bufferSize);
|
||||
file->read(buffer, bufferSize);
|
||||
|
Loading…
x
Reference in New Issue
Block a user