fileselector: Add missing call to group_del
authorJean-Philippe Andre <jp.andre@samsung.com>
Wed, 15 Feb 2017 11:07:38 +0000 (20:07 +0900)
committerJean-Philippe Andre <jp.andre@samsung.com>
Wed, 15 Feb 2017 11:11:22 +0000 (20:11 +0900)
Remove unused refcount thingy and enforce call to smart del.

Fixes T4598

src/lib/elementary/elc_fileselector.c
src/lib/elementary/elm_widget_fileselector.h

index 183b6c4..524ca80 100644 (file)
@@ -2029,11 +2029,8 @@ _elm_fileselector_efl_canvas_group_group_del(Eo *obj, Elm_Fileselector_Data *sd)
 
    sd->multi_selection = eina_list_free(sd->multi_selection);
    sd->multi_selection_tmp = eina_list_free(sd->multi_selection_tmp);
-
    sd->files_view = NULL;
-
-   /* this one matching EINA_REFCOUNT_INIT() */
-   EINA_REFCOUNT_UNREF(sd) _elm_fileselector_smart_del_do(obj, sd);
+   _elm_fileselector_smart_del_do(obj, sd);
 }
 
 EAPI Evas_Object *
index 458e42b..6cf369c 100644 (file)
@@ -30,8 +30,6 @@ typedef struct _Elm_Fileselector_Item_Data Elm_Fileselector_Item_Data;
 typedef struct _Elm_Fileselector_Data Elm_Fileselector_Data;
 struct _Elm_Fileselector_Data
 {
-   EINA_REFCOUNT;
-
    Evas_Object             *obj;
    Evas_Object             *path_entry;
    Evas_Object             *name_entry;