forked from enlightenment/efl
eldbus_proxy: Prevent dangling pointer.
This commit is contained in:
parent
35f188239a
commit
65be14db24
|
@ -148,7 +148,10 @@ _eldbus_proxy_clear(Eldbus_Proxy *proxy)
|
|||
|
||||
eldbus_cbs_free_dispatch(&(proxy->cbs_free), proxy);
|
||||
if (proxy->props)
|
||||
eina_hash_free(proxy->props);
|
||||
{
|
||||
eina_hash_free(proxy->props);
|
||||
proxy->props = NULL;
|
||||
}
|
||||
proxy->refcount = 0;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue