r20741 by jghali -
scribus-commit
scribus-commit at lists.scribus.net
Wed Jan 27 23:21:42 UTC 2016
Author: jghali
Date: Wed Jan 27 23:21:41 2016
New Revision: 20741
URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=20741
Log:
fix resource leaks <coverity>
Modified:
branches/Version14x/Scribus/scribus/scribus.cpp
Modified: branches/Version14x/Scribus/scribus/scribus.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=20741&path=/branches/Version14x/Scribus/scribus/scribus.cpp
==============================================================================
--- branches/Version14x/Scribus/scribus/scribus.cpp (original)
+++ branches/Version14x/Scribus/scribus/scribus.cpp Wed Jan 27 23:21:41 2016
@@ -4332,7 +4332,10 @@
{
int t = QMessageBox::warning(this, CommonStrings::trWarning, tr("Do you really want to clear all your text?"), QMessageBox::Yes | QMessageBox::No, QMessageBox::No);
if (t == QMessageBox::No)
+ {
+ delete gt;
return;
+ }
}
gt->launchImporter(impsetup.importer, impsetup.filename, impsetup.textOnly, impsetup.encoding, false);
currItem->asTextFrame()->updateUndo();
More information about the scribus-commit
mailing list