mirror of
https://github.com/WinampDesktop/winamp.git
synced 2025-06-12 06:55:46 -04:00
Common: Fix double free on opening invalid zip file
This commit is contained in:
@ -65,11 +65,7 @@ namespace MinizipHelpers {
|
||||
|
||||
#undef FI
|
||||
|
||||
unzFile zf = unzOpen2_64("", &funcs);
|
||||
if (!zf)
|
||||
delete fi;
|
||||
|
||||
return zf;
|
||||
return unzOpen2_64("", &funcs);
|
||||
}
|
||||
|
||||
[[maybe_unused]] static unzFile OpenUnzFile(const char* filename)
|
||||
|
Reference in New Issue
Block a user