Don't leak the animator driver of the animator instance.
svn path=/trunk/KDE/kdelibs/; revision=883002
This commit is contained in:
parent
c94f93e4ef
commit
69a3b53112
@ -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) {
|
||||||
|
Loading…
Reference in New Issue
Block a user