Don't leak the animator driver of the animator instance.

svn path=/trunk/KDE/kdelibs/; revision=883002
This commit is contained in:
Michel Hermier 2008-11-11 21:14:32 +00:00
parent c94f93e4ef
commit 69a3b53112

View File

@ -709,7 +709,7 @@ void AnimatorPrivate::init(Animator *q)
KPluginLoader plugin(*offers.first()); KPluginLoader plugin(*offers.first());
if (Plasma::isPluginVersionCompatible(plugin.pluginVersion())) { if (Plasma::isPluginVersionCompatible(plugin.pluginVersion())) {
driver = offers.first()->createInstance<Plasma::AnimationDriver>(0, QVariantList(), &error); driver = offers.first()->createInstance<Plasma::AnimationDriver>(q, QVariantList(), &error);
} }
if (!driver) { if (!driver) {