Summary: | [PATCH] Memory leak, QSvgRenderers are created and never freed | ||
---|---|---|---|
Product: | [Applications] kalzium | Reporter: | David Benjamin <davidben> |
Component: | general | Assignee: | Kalzium Developers <kalzium> |
Status: | RESOLVED FIXED | ||
Severity: | normal | ||
Priority: | NOR | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Platform: | Compiled Sources | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Attachments: | Remove memory leak |
Description
David Benjamin
2008-02-07 19:17:50 UTC
Created attachment 23464 [details]
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.)
SVN commit 772723 by cniehaus: Fix four bugs. All patches have been provided by David Benjamin. BUGS:157355,157359,157466,157473 M +8 -5 detailedgraphicaloverview.cpp M +4 -2 detailinfodlg.cpp M +1 -1 kalzium.cpp M +3 -5 kalziumdataobject.cpp M +1 -2 molcalcwidget.cpp M +2 -31 molcalcwidgetbase.ui WebSVN link: http://websvn.kde.org/?view=rev&revision=772723 |