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