eldbus_proxy: Prevent dangling pointer.

This commit is contained in:
junsu choi 2019-09-06 11:25:22 +09:00
parent 35f188239a
commit 65be14db24
1 changed files with 4 additions and 1 deletions

View File

@ -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;
}