r20739 by jghali -

scribus-commit scribus-commit at lists.scribus.net
Wed Jan 27 23:15:38 UTC 2016


Author: jghali
Date: Wed Jan 27 23:15:38 2016
New Revision: 20739

URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=20739
Log:
fix resource leaks <coverity>

Modified:
    trunk/Scribus/scribus/scimagecachewriteaction.cpp

Modified: trunk/Scribus/scribus/scimagecachewriteaction.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=20739&path=/trunk/Scribus/scribus/scimagecachewriteaction.cpp
==============================================================================
--- trunk/Scribus/scribus/scimagecachewriteaction.cpp	(original)
+++ trunk/Scribus/scribus/scimagecachewriteaction.cpp	Wed Jan 27 23:15:38 2016
@@ -171,7 +171,10 @@
 		if (!p)
 			return false;
 		if (!m_haveMasterLock && !p->lock())
+		{
+			delete p;
 			return false;
+		}
 		m_access[d] = p;
 	}
 




More information about the scribus-commit mailing list