Commit f81175cf authored by Olivier Teulière's avatar Olivier Teulière

* skins2/src/theme_loader.cpp: Do not forget to remove the temporary directory

   when the extraction failed
parent fcf29754
...@@ -281,7 +281,10 @@ bool ThemeLoader::extract( const string &fileName ) ...@@ -281,7 +281,10 @@ bool ThemeLoader::extract( const string &fileName )
// Extract the file in a temporary directory // Extract the file in a temporary directory
if( ! extractTarGz( fileName, tempPath ) && if( ! extractTarGz( fileName, tempPath ) &&
! extractZip( fileName, tempPath ) ) ! extractZip( fileName, tempPath ) )
{
deleteTempFiles( tempPath );
return false; return false;
}
string path; string path;
string xmlFile; string xmlFile;
......
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