Catch a memory leak in Plasma::Frame, and make use of QObject parenting where possible.

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=845534
This commit is contained in:
Alex Merry 2008-08-11 23:26:13 +00:00
parent 1eecd3f819
commit 7bd180b8bb
2 changed files with 2 additions and 3 deletions

View File

@ -49,7 +49,7 @@ public:
~FramePrivate()
{
delete svg;
delete pixmap;
}
void syncBorders();

View File

@ -52,7 +52,6 @@ class SignalPlotterPrivate
~SignalPlotterPrivate()
{
delete svgBackground;
}
int precision;
@ -459,7 +458,7 @@ void SignalPlotter::setSvgBackground(const QString &filename)
if (!d->svgFilename.isEmpty())
{
if (d->svgBackground) delete d->svgBackground;
d->svgBackground = new Svg();
d->svgBackground = new Svg(this);
d->svgBackground->setImagePath(d->svgFilename);
}