From a0318bb829e1041a345e403461d5c74a00a2f866 Mon Sep 17 00:00:00 2001 From: Leandro Dorileo Date: Tue, 11 Dec 2012 21:13:17 +0000 Subject: [PATCH] efbb: unfreeze timer before deleting it Before deleting the game timer unfreeze it so ecore doesn't try to handle as pending a deleted timer. SVN revision: 80724 --- src/bin/main.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/bin/main.c b/src/bin/main.c index 4a078ba..ca21541 100644 --- a/src/bin/main.c +++ b/src/bin/main.c @@ -708,6 +708,7 @@ level_unload(Game *game) if (game->timer) { + ecore_timer_thaw(game->timer); ecore_timer_del(game->timer); game->timer = NULL; } @@ -968,6 +969,8 @@ _ship_time_attack_cb(void *data) int x, y, z, w, h, d; Eina_List *l; + if (!game->timer) return EINA_FALSE; + ephysics_body_geometry_get(game->ship, &x, &y, &z, &w, &h, &d); if (x >= 2260)