Efl vpath: Fix usage of @class function
authorJean-Philippe Andre <jp.andre@samsung.com>
Wed, 6 Apr 2016 04:27:09 +0000 (13:27 +0900)
committerJean-Philippe Andre <jp.andre@samsung.com>
Wed, 6 Apr 2016 04:27:09 +0000 (13:27 +0900)
Calling an @class function with a real object is not safe.
Missing check somewhere? I believe this should have failed safely.

src/lib/efl/interfaces/efl_vpath_manager.c

index fdf5e9a..59be446 100644 (file)
@@ -53,7 +53,7 @@ _register_sort_cb(Efl_Vpath_Manager_Entry *e1, Efl_Vpath_Manager_Entry *e2)
 static Eina_Bool
 _cb_vpath_del(void *data, const Eo_Event *event)
 {
-   efl_vpath_manager_unregister(data, event->obj);
+   efl_vpath_manager_unregister(EFL_VPATH_MANAGER_CLASS, event->obj);
    eo_event_callback_del(event->obj, EO_BASE_EVENT_DEL, _cb_vpath_del, data);
    return EINA_TRUE;
 }