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:
parent
e93021bbb8
commit
a792e89d2d
@ -130,7 +130,7 @@ Wallpaper *Wallpaper::load(const KPluginInfo &info, const QVariantList &args)
|
|||||||
PackageStructure::Ptr Wallpaper::packageStructure(Wallpaper *paper)
|
PackageStructure::Ptr Wallpaper::packageStructure(Wallpaper *paper)
|
||||||
{
|
{
|
||||||
if (paper) {
|
if (paper) {
|
||||||
PackageStructure::Ptr package(new WallpaperPackage(paper, paper));
|
PackageStructure::Ptr package(new WallpaperPackage(paper));
|
||||||
return package;
|
return package;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user