seoz pushed a commit to branch master.

commit 694025b525ff63a0b30211c92b77aba9b75f8e87
Author: Daniel Juyung Seo <[email protected]>
Date:   Wed Jul 3 20:29:43 2013 +0900

    elm_entry.c: more ELM_FREE_FUNC for entry.
---
 src/lib/elm_entry.c | 15 ++++-----------
 1 file changed, 4 insertions(+), 11 deletions(-)

diff --git a/src/lib/elm_entry.c b/src/lib/elm_entry.c
index 80fb84b..4220a79 100644
--- a/src/lib/elm_entry.c
+++ b/src/lib/elm_entry.c
@@ -982,11 +982,7 @@ _hover_del_job(void *data)
 {
    ELM_ENTRY_DATA_GET(data, sd);
 
-   if (sd->hoversel)
-     {
-        evas_object_del(sd->hoversel);
-        sd->hoversel = NULL;
-     }
+   ELM_SAFE_FREE(sd->hoversel, evas_object_del);
    sd->hov_deljob = NULL;
 }
 
@@ -2019,8 +2015,7 @@ _anchor_hover_del_cb(void *data,
 {
    ELM_ENTRY_DATA_GET(data, sd);
 
-   if (sd->anchor_hover.pop) evas_object_del(sd->anchor_hover.pop);
-   sd->anchor_hover.pop = NULL;
+   ELM_SAFE_FREE(sd->anchor_hover.pop, evas_object_del);
    evas_object_event_callback_del_full
      (sd->anchor_hover.hover, EVAS_CALLBACK_DEL, _anchor_hover_del_cb, obj);
 }
@@ -5482,10 +5477,8 @@ _anchor_hover_end(Eo *obj EINA_UNUSED, void *_pd, 
va_list *list EINA_UNUSED)
 {
    Elm_Entry_Smart_Data *sd = _pd;
 
-   if (sd->anchor_hover.hover) evas_object_del(sd->anchor_hover.hover);
-   if (sd->anchor_hover.pop) evas_object_del(sd->anchor_hover.pop);
-   sd->anchor_hover.hover = NULL;
-   sd->anchor_hover.pop = NULL;
+   ELM_SAFE_FREE(sd->anchor_hover.hover, evas_object_del);
+   ELM_SAFE_FREE(sd->anchor_hover.pop, evas_object_del);
 }
 /* END - ANCHOR HOVER */
 

-- 

------------------------------------------------------------------------------
This SF.net email is sponsored by Windows:

Build for Windows Store.

http://p.sf.net/sfu/windows-dev2dev

Reply via email to