seoz pushed a commit to branch master.
commit a204be95564e543cc77a80f187439442fffe3ef2
Author: Daniel Juyung Seo <[email protected]>
Date: Wed May 29 21:12:04 2013 +0900
els_tooltip.c: ELM_SAFE_FREE adoption.
I splited ELM_SAFE_FREE refactoring patches. One commit per each file as
recommended.
For the detail, please refer 3072dab12f12fe83fb5a628d15efd5cded11787f.
---
src/lib/els_tooltip.c | 8 +++-----
1 file changed, 3 insertions(+), 5 deletions(-)
diff --git a/src/lib/els_tooltip.c b/src/lib/els_tooltip.c
index a54d5cb..54ab0ff 100644
--- a/src/lib/els_tooltip.c
+++ b/src/lib/els_tooltip.c
@@ -220,9 +220,7 @@ _elm_tooltip_reconfigure_job(void *data)
static void
_elm_tooltip_reconfigure_job_stop(Elm_Tooltip *tt)
{
- if (!tt->reconfigure_job) return;
- ecore_job_del(tt->reconfigure_job);
- tt->reconfigure_job = NULL;
+ ELM_SAFE_FREE(tt->reconfigure_job, ecore_job_del);
}
static void
@@ -261,7 +259,7 @@ _elm_tooltip_hide_anim_stop(Elm_Tooltip *tt)
if (tt->tooltip)
edje_object_signal_emit(tt->tooltip, "elm,action,show", "elm");
- ELM_FREE_FUNC(tt->hide_timer, ecore_timer_del);
+ ELM_SAFE_FREE(tt->hide_timer, ecore_timer_del);
}
static void
@@ -537,7 +535,7 @@ static void
_elm_tooltip_show_timer_stop(Elm_Tooltip *tt)
{
if (!tt->show_timer) return;
- ELM_FREE_FUNC(tt->show_timer, ecore_timer_del);
+ ELM_SAFE_FREE(tt->show_timer, ecore_timer_del);
}
static Eina_Bool
--
------------------------------------------------------------------------------
Introducing AppDynamics Lite, a free troubleshooting tool for Java/.NET
Get 100% visibility into your production application - at no cost.
Code-level diagnostics for performance bottlenecks with <2% overhead
Download for free and get started troubleshooting in minutes.
http://p.sf.net/sfu/appdyn_d2d_ap1