Commit 305a8ad6 authored by Olivier Teulière's avatar Olivier Teulière

* skins2/src/theme_loader.cpp: Close the zip file when we are done with it...

parent ed17d7b1
...@@ -165,6 +165,7 @@ bool ThemeLoader::extractZip( const string &zipFile, const string &rootDir ) ...@@ -165,6 +165,7 @@ bool ThemeLoader::extractZip( const string &zipFile, const string &rootDir )
{ {
msg_Warn( getIntf(), "Error while unzipping %s", msg_Warn( getIntf(), "Error while unzipping %s",
zipFile.c_str() ); zipFile.c_str() );
unzClose( file );
return false; return false;
} }
...@@ -175,10 +176,12 @@ bool ThemeLoader::extractZip( const string &zipFile, const string &rootDir ) ...@@ -175,10 +176,12 @@ bool ThemeLoader::extractZip( const string &zipFile, const string &rootDir )
{ {
msg_Warn( getIntf(), "Error while unzipping %s", msg_Warn( getIntf(), "Error while unzipping %s",
zipFile.c_str() ); zipFile.c_str() );
unzClose( file );
return false; return false;
} }
} }
} }
unzClose( file );
return true; return true;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment