r15819 by fschmid - PGF import: add missing close().

scribus-commit scribus-commit at lists.scribus.net
Mon Nov 8 22:33:32 CET 2010


Author: fschmid
Date: Mon Nov  8 21:33:32 2010
New Revision: 15819

URL: http://scribus.info/websvn/listing.php?repname=Scribus&sc=1&rev=15819
Log:
PGF import: add missing close().

Modified:
    trunk/Scribus/scribus/scimgdataloader_pgf.cpp

Modified: trunk/Scribus/scribus/scimgdataloader_pgf.cpp
URL: http://scribus.info/websvn/diff.php?repname=Scribus&rev=15819&path=/trunk/Scribus/scribus/scimgdataloader_pgf.cpp
==============================================================================
--- trunk/Scribus/scribus/scimgdataloader_pgf.cpp (original)
+++ trunk/Scribus/scribus/scimgdataloader_pgf.cpp Mon Nov  8 21:33:32 2010
@@ -194,6 +194,8 @@
 				pgfImg.GetBitmap(m_image.bytesPerLine(), (UINT8*)m_image.bits(), m_image.depth(), map);
 			}
 		}
+		pgfImg.Close();
+		close(fd);
 		m_imageInfoRecord.type = ImageTypeOther;
 		m_imageInfoRecord.exifDataValid = false;
 		float xres = m_image.dotsPerMeterX() * 0.0254;




More information about the scribus-commit mailing list