forked from enlightenment/efl
eldbus: use efl_del when clearing the model connection child list
it is an error to delete an object with an existing parent Signed-off-by: Mike Blumenkrantz <zmike@osg.samsung.com>
This commit is contained in:
parent
46992cbed5
commit
67b135ab87
|
@ -272,7 +272,7 @@ _eldbus_model_connection_clear(Eldbus_Model_Connection_Data *pd)
|
||||||
pd->unique_name = NULL;
|
pd->unique_name = NULL;
|
||||||
|
|
||||||
EINA_LIST_FREE(pd->children_list, child)
|
EINA_LIST_FREE(pd->children_list, child)
|
||||||
efl_unref(child);
|
efl_del(child);
|
||||||
|
|
||||||
EINA_LIST_FREE(pd->pending_list, pending)
|
EINA_LIST_FREE(pd->pending_list, pending)
|
||||||
eldbus_pending_cancel(pending);
|
eldbus_pending_cancel(pending);
|
||||||
|
|
Loading…
Reference in New Issue