Fix UNREF problem
authorDaniel Juyung Seo <juyung.seo@samsung.com>
Fri, 8 Jul 2011 05:30:09 +0000 (14:30 +0900)
committerDaniel Juyung Seo <juyung.seo@samsung.com>
Fri, 8 Jul 2011 05:30:09 +0000 (14:30 +0900)
src/lib/elc_fileselector.c

index d520a2e..4b34161 100644 (file)
@@ -149,8 +149,7 @@ _del_hook(Evas_Object *obj)
    wd->files_list = NULL;
    wd->files_grid = NULL;
 
-   EINA_REFCOUNT_UNREF(wd)
-     _widget_data_free(wd);
+   EINA_REFCOUNT_UNREF(wd, _widget_data_free);
 }
 
 static void
@@ -671,8 +670,7 @@ _main_cb(void *data, Eio_File *handler, const Eina_File_Direct_Info *info __UNUS
 static void
 _widget_request_cleanup(Widget_Request *wr)
 {
-   EINA_REFCOUNT_UNREF(wr->wd)
-     _widget_data_free(wr->wd);
+   EINA_REFCOUNT_UNREF(wr->wd, _widget_data_free);
 
    eina_stringshare_del(wr->path);
    free(wr);