summaryrefslogtreecommitdiff
path: root/src/core
diff options
context:
space:
mode:
authorDenis Gorodnichev <[email protected]>2014-08-18 20:23:51 +0400
committerDenis Gorodnichev <[email protected]>2014-08-18 20:23:51 +0400
commitc3e9737339c8b8beabd892d7040c564b5842d892 (patch)
treef99f5a2d68549f7b052cc4aa88f606f706b35fef /src/core
parentf98f0f0f62a2655ea9bd3708ab78686337d2a68b (diff)
downloadmarco-c3e9737339c8b8beabd892d7040c564b5842d892.tar.bz2
marco-c3e9737339c8b8beabd892d7040c564b5842d892.tar.xz
fix seqfault when animation is disabled
Diffstat (limited to 'src/core')
-rw-r--r--src/core/effects.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/core/effects.c b/src/core/effects.c
index 853d5ce9..469184e2 100644
--- a/src/core/effects.c
+++ b/src/core/effects.c
@@ -754,7 +754,8 @@ run_handler (MetaEffect *effect)
}
else
{
- effect->priv->finished(effect->priv->finished_data);
+ if (effect->priv->finished)
+ effect->priv->finished(effect->priv->finished_data);
}
effect_free (effect);