mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-30 19:24:23 +01:00
Minor cleanup. Fix file handle leak when opening zip files from the main screen.
This commit is contained in:
1 parent
0dec3526a5
commit
605daf879b
5 files changed
+25
-8
No files matched your search
@@ -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