From f9db569adbbd0a9fef1dcebe5a17865afe1118d6 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sun, 3 Nov 2013 23:35:07 +0300 Subject: fix infinite loop in saedit. --- saedit/main.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/saedit/main.c b/saedit/main.c index d0ce20a..d6c147a 100644 --- a/saedit/main.c +++ b/saedit/main.c @@ -388,6 +388,11 @@ void show_animation(SAEInfo *sae_info) { if (next == NULL) next = g_list_first(sae_info->animation); + if (!sprite->delay) + { + free_animations(sae_info); + return; + } sae_info->animation = next; sae_info->anim_tag = g_timeout_add(sprite->delay, (GSourceFunc)show_animation, sae_info); } -- cgit v1.2.3-70-g09d2