diff --git a/src/core/kemoticonstheme.cpp b/src/core/kemoticonstheme.cpp --- a/src/core/kemoticonstheme.cpp +++ b/src/core/kemoticonstheme.cpp @@ -29,16 +29,16 @@ public: KEmoticonsThemeData(); ~KEmoticonsThemeData(); - KEmoticonsProvider *provider = nullptr; + + QSharedPointer provider; }; KEmoticonsTheme::KEmoticonsThemeData::KEmoticonsThemeData() { } KEmoticonsTheme::KEmoticonsThemeData::~KEmoticonsThemeData() { -// delete provider; } KEmoticonsTheme::KEmoticonsTheme() @@ -54,7 +54,7 @@ KEmoticonsTheme::KEmoticonsTheme(KEmoticonsProvider *p) { d = new KEmoticonsThemeData; - d->provider = p; + d->provider.reset(p); } KEmoticonsTheme::~KEmoticonsTheme()