summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSander Sweers <[email protected]>2014-08-19 13:57:23 +0200
committerSander Sweers <[email protected]>2014-08-19 13:57:23 +0200
commiteba0559d55ccad074e8241c6f276e6e4442dd669 (patch)
treef99f5a2d68549f7b052cc4aa88f606f706b35fef /src
parentf98f0f0f62a2655ea9bd3708ab78686337d2a68b (diff)
parentc3e9737339c8b8beabd892d7040c564b5842d892 (diff)
downloadmarco-eba0559d55ccad074e8241c6f276e6e4442dd669.tar.bz2
marco-eba0559d55ccad074e8241c6f276e6e4442dd669.tar.xz
Merge pull request #131 from dnk/effect_finished
fix seqfault when animation is disabled
Diffstat (limited to 'src')
-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);