Skip to content
Snippets Groups Projects
Commit f81175cf authored by ipkiss's avatar ipkiss
Browse files

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

   when the extraction failed
parent fcf29754
No related branches found
No related tags found
No related merge requests found
......@@ -281,7 +281,10 @@ bool ThemeLoader::extract( const string &fileName )
// Extract the file in a temporary directory
if( ! extractTarGz( fileName, tempPath ) &&
! extractZip( fileName, tempPath ) )
{
deleteTempFiles( tempPath );
return false;
}
string path;
string xmlFile;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment