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:
parent
1eecd3f819
commit
7bd180b8bb
@ -49,7 +49,7 @@ public:
|
||||
|
||||
~FramePrivate()
|
||||
{
|
||||
delete svg;
|
||||
delete pixmap;
|
||||
}
|
||||
|
||||
void syncBorders();
|
||||
|
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user