r18955 by fschmid - Fix memory leak on preview generation.

scribus-commit scribus-commit at lists.scribus.net
Wed Mar 26 21:07:32 UTC 2014


Author: fschmid
Date: Wed Mar 26 21:07:32 2014
New Revision: 18955

URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=18955
Log:
Fix memory leak on preview generation.

Modified:
    trunk/Scribus/scribus/plugins/import/odg/importodg.cpp

Modified: trunk/Scribus/scribus/plugins/import/odg/importodg.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=18955&path=/trunk/Scribus/scribus/plugins/import/odg/importodg.cpp
==============================================================================
--- trunk/Scribus/scribus/plugins/import/odg/importodg.cpp (original)
+++ trunk/Scribus/scribus/plugins/import/odg/importodg.cpp Wed Mar 26 21:07:32 2014
@@ -99,7 +99,10 @@
 	{
 		QByteArray im;
 		if (!uz->read("Thumbnails/thumbnail.png", im))
+		{
+			delete uz;
 			return QImage();
+		}
 		tmp = QImage::fromData(im);
 		int xs = 0;
 		int ys = 0;




More information about the scribus-commit mailing list