Fix possible memory leaks
This commit is contained in:
parent
f245d7d31f
commit
f200472c4f
@ -52,12 +52,15 @@ int Project::openRomFs() {
|
||||
if (m_fs) {
|
||||
return 0;
|
||||
} else {
|
||||
delete []buff;
|
||||
return 1;
|
||||
}
|
||||
} else {
|
||||
delete []buff;
|
||||
return 2;
|
||||
}
|
||||
} else {
|
||||
delete []buff;
|
||||
return 3;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user