raster pushed a commit to branch master.
commit 8dad24565f8eaff95824caa062bf50b551b89ec8
Author: Carsten Haitzler (Rasterman) <[email protected]>
Date: Sun Mar 31 11:58:41 2013 +0900
segv-- for clock popup o_popclock object ref benig dangling. this is a
new bug methinks in e18 dev.
---
src/modules/clock/e_mod_main.c | 13 +++++++++++++
1 file changed, 13 insertions(+)
diff --git a/src/modules/clock/e_mod_main.c b/src/modules/clock/e_mod_main.c
index 28452ef..c5e2fcd 100644
--- a/src/modules/clock/e_mod_main.c
+++ b/src/modules/clock/e_mod_main.c
@@ -291,6 +291,7 @@ _clock_settings_cb(void *d1, void *d2 __UNUSED__)
e_int_config_clock_module(inst->popup->win->zone->container, inst->cfg);
e_object_del(E_OBJECT(inst->popup));
inst->popup = NULL;
+ inst->o_popclock = NULL;
}
static Eina_Bool
@@ -310,6 +311,16 @@ _clock_popup_desk_change(Instance *inst, int type
__UNUSED__, E_Event_Desk_After
}
static void
+_popclock_del_cb(void *data, Evas *e __UNUSED__, Evas_Object *obj, void *info
__UNUSED__)
+{
+ Instance *inst = data;
+ if (inst->o_popclock == obj)
+ {
+ inst->o_popclock = NULL;
+ }
+}
+
+static void
_clock_popup_new(Instance *inst)
{
Evas *evas;
@@ -332,6 +343,8 @@ _clock_popup_new(Instance *inst)
oi = edje_object_add(evas);
inst->o_popclock = oi;
+ evas_object_event_callback_add(oi, EVAS_CALLBACK_DEL, _popclock_del_cb,
inst);
+
if (inst->cfg->digital_clock)
e_theme_edje_object_set(oi, "base/theme/modules/clock",
"e/modules/clock/digital");
--
------------------------------------------------------------------------------
Own the Future-Intel(R) Level Up Game Demo Contest 2013
Rise to greatness in Intel's independent game demo contest. Compete
for recognition, cash, and the chance to get your game on Steam.
$5K grand prize plus 10 genre and skill prizes. Submit your demo
by 6/6/13. http://altfarm.mediaplex.com/ad/ck/12124-176961-30367-2