r22451 by craig - Coverity 1405397

scribus-commit scribus-commit at lists.scribus.net
Mon Mar 26 22:24:57 UTC 2018


Author: craig
Date: Mon Mar 26 22:24:57 2018
New Revision: 22451

URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=22451
Log:
Coverity 1405397

Modified:
    trunk/Scribus/scribus/scribus.cpp

Modified: trunk/Scribus/scribus/scribus.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=22451&path=/trunk/Scribus/scribus/scribus.cpp
==============================================================================
--- trunk/Scribus/scribus/scribus.cpp	(original)
+++ trunk/Scribus/scribus/scribus.cpp	Mon Mar 26 22:24:57 2018
@@ -5249,12 +5249,15 @@
 
 void ScribusMainWindow::slotResourceManager()
 {
-	if (!resourceManager)
+	if (!resourceManager) // in case its allocated???? maybe can remove in future
 	{
 		resourceManager=new ResourceManager(this);
-		resourceManager->exec();
-		resourceManager->deleteLater();
-		resourceManager=0;
+		if (resourceManager)
+		{
+			resourceManager->exec();
+			resourceManager->deleteLater();
+			resourceManager=0;
+		}
 	}
 }
 




More information about the scribus-commit mailing list