[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: branches/KDE/3.5/kdegraphics/kdvi
From: Wilfried Huss <Wilfried.Huss () gmx ! at>
Date: 2005-10-06 20:38:06
Message-ID: 1128631086.205691.3461.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 467918 by whuss:
It's a good idea to delete temporary files.
This also fixes a small memory leak.
Thanks to Angus Leeming for spotting this bug.
M +8 -8 psgs.cpp
--- branches/KDE/3.5/kdegraphics/kdvi/psgs.cpp #467917:467918
@@ -300,14 +300,14 @@
#endif
return;
}
-
- KTempFile *GfxFile = new KTempFile(QString::null,".png");
- GfxFile->setAutoDelete(1);
- GfxFile->close(); // we are want the filename, not the file
-
- gs_generate_graphics_file(page, GfxFile->name(), magnification);
-
- QPixmap MemoryCopy(GfxFile->name());
+
+ KTempFile gfxFile(QString::null, ".png");
+ gfxFile.setAutoDelete(1);
+ gfxFile.close(); // we are want the filename, not the file
+
+ gs_generate_graphics_file(page, gfxFile.name(), magnification);
+
+ QPixmap MemoryCopy(gfxFile.name());
paint->drawPixmap(0, 0, MemoryCopy);
return;
}
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic