r20737 by jghali -

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


Author: jghali
Date: Wed Jan 27 23:04:15 2016
New Revision: 20737

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

Modified:
    branches/Version14x/Scribus/scribus/plugins/gettext/pdbim/pdbim.cpp

Modified: branches/Version14x/Scribus/scribus/plugins/gettext/pdbim/pdbim.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=20737&path=/branches/Version14x/Scribus/scribus/plugins/gettext/pdbim/pdbim.cpp
==============================================================================
--- branches/Version14x/Scribus/scribus/plugins/gettext/pdbim/pdbim.cpp	(original)
+++ branches/Version14x/Scribus/scribus/plugins/gettext/pdbim/pdbim.cpp	Wed Jan 27 23:04:15 2016
@@ -100,6 +100,7 @@
 		QMessageBox::warning(ScCore->primaryMainWindow(), QObject::tr("PDB Import", "PDB Importer"),
 							 "<qt>" + QObject::tr("This file is not recognized as a PDB document. Please, report this as a bug if you are sure it is one.", "PDB Importer") + "</qt>",
 							 QMessageBox::Ok, QMessageBox::NoButton);
+		fclose(m_pdfp);
 		return;
 	}
 
@@ -150,6 +151,7 @@
 			++m_buf->position;
 		} 
 	}
+	fclose(m_pdfp);
 }
 
 void PdbIm::selectSwap()




More information about the scribus-commit mailing list