mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-07-11 01:25:07 +02:00
Minor cleanup. Fix file handle leak when opening zip files from the main screen.
This commit is contained in:
@@ -52,6 +52,7 @@
|
||||
|
||||
GameManager g_GameManager;
|
||||
|
||||
// Close the return value with ZipClose (if non-null, of course).
|
||||
struct zip *ZipOpenPath(Path fileName) {
|
||||
int error = 0;
|
||||
// Need to special case for content URI here, similar to OpenCFile.
|
||||
@@ -73,7 +74,8 @@ struct zip *ZipOpenPath(Path fileName) {
|
||||
}
|
||||
|
||||
void ZipClose(struct zip *z) {
|
||||
zip_close(z);
|
||||
if (z)
|
||||
zip_close(z);
|
||||
}
|
||||
|
||||
GameManager::GameManager() {
|
||||
|
||||
Reference in New Issue
Block a user