r20740 by jghali -
scribus-commit
scribus-commit at lists.scribus.net
Wed Jan 27 23:21:05 UTC 2016
Author: jghali
Date: Wed Jan 27 23:21:05 2016
New Revision: 20740
URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=20740
Log:
fix resource leaks <coverity>
Modified:
trunk/Scribus/scribus/scribus.cpp
Modified: trunk/Scribus/scribus/scribus.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=20740&path=/trunk/Scribus/scribus/scribus.cpp
==============================================================================
--- trunk/Scribus/scribus/scribus.cpp (original)
+++ trunk/Scribus/scribus/scribus.cpp Wed Jan 27 23:21:05 2016
@@ -3801,7 +3801,10 @@
QMessageBox::No, // GUI default
QMessageBox::Yes); // batch default
if (t == QMessageBox::No)
+ {
+ delete gt;
return;
+ }
}
gt->launchImporter(impsetup.importer, impsetup.filename, impsetup.textOnly, impsetup.encoding, false, impsetup.prefixNames);
}
More information about the scribus-commit
mailing list