From 072ebd0c06e2c899266b050fad4b805b519a5aec Mon Sep 17 00:00:00 2001 From: WooHyun Jung Date: Wed, 23 Jan 2013 05:29:31 +0000 Subject: [PATCH] elementary/notify : In _timer_cb of elm_notify, access to sd should be forbidden after smart_callback_call is called. SVN revision: 83121 --- legacy/elementary/ChangeLog | 4 ++++ legacy/elementary/src/lib/elm_notify.c | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/legacy/elementary/ChangeLog b/legacy/elementary/ChangeLog index 2699c2aae5..d6e1ad73d9 100644 --- a/legacy/elementary/ChangeLog +++ b/legacy/elementary/ChangeLog @@ -944,3 +944,7 @@ 2012-01-22 Daniel Juyung Seo (SeoZ) * Enhanced diskselector add and item_append time. + +2012-01-23 WooHyun Jung + + * In _timer_cb of elm_notify, access to sd should be forbidden after smart_callback_call is called. diff --git a/legacy/elementary/src/lib/elm_notify.c b/legacy/elementary/src/lib/elm_notify.c index e78479f9ab..5bccedcdfe 100644 --- a/legacy/elementary/src/lib/elm_notify.c +++ b/legacy/elementary/src/lib/elm_notify.c @@ -238,13 +238,13 @@ _timer_cb(void *data) ELM_NOTIFY_DATA_GET(obj, sd); + sd->timer = NULL; if (!evas_object_visible_get(obj)) goto end; evas_object_hide(obj); evas_object_smart_callback_call(obj, SIG_TIMEOUT, NULL); end: - sd->timer = NULL; return ECORE_CALLBACK_CANCEL; }