the Ptr is reference counted, so don't also give it a QObject pointer, otherwise it gets deleted potentially twice: once when the parent is deleted and again when the last Ptr deref's ... since the Ptr provides mem management, the parent is completely uneeded anyways

svn path=/trunk/KDE/kdelibs/; revision=954078
This commit is contained in:
Aaron J. Seigo 2009-04-15 02:39:49 +00:00
parent e93021bbb8
commit a792e89d2d

View File

@ -130,7 +130,7 @@ Wallpaper *Wallpaper::load(const KPluginInfo &info, const QVariantList &args)
PackageStructure::Ptr Wallpaper::packageStructure(Wallpaper *paper)
{
if (paper) {
PackageStructure::Ptr package(new WallpaperPackage(paper, paper));
PackageStructure::Ptr package(new WallpaperPackage(paper));
return package;
}