[Kalzium] [Bug 157355] [PATCH] Memory leak, QSvgRenderers are created and never freed

David Benjamin dnas.dnas at gmail.com
Thu Feb 7 19:20:24 CET 2008


------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
         
http://bugs.kde.org/show_bug.cgi?id=157355         




------- Additional Comments From dnas.dnas gmail com  2008-02-07 19:20 -------
Created an attachment (id=23464)
 --> (http://bugs.kde.org/attachment.cgi?id=23464&action=view)
Remove memory leak

This patch removes the memory leak. The QSvgRenderer is short-lived, so might
as well allocate it on the stack.

(Also a couple minor things like the static QFile::exists(QString) instead of
creating an object. It seems to go via QFileInfo, which I presume stat()s the
file. And endsWith instead of the regexp which had a minor problem with . being
a wildcard anyway.)


More information about the Kalzium mailing list