summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJunsuChoi <jsuya.choi@samsung.com>2019-09-06 11:25:22 +0900
committerJunsuChoi <jsuya.choi@samsung.com>2019-09-06 11:25:22 +0900
commit65be14db240218494930da39da4bcfe916b77aa2 (patch)
tree8473cf0ade4bba476c16b8908d38a42dbee45714
parent35f188239aef0c770551c532b04c724509a63170 (diff)
eldbus_proxy: Prevent dangling pointer.
-rw-r--r--src/lib/eldbus/eldbus_proxy.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/lib/eldbus/eldbus_proxy.c b/src/lib/eldbus/eldbus_proxy.c
index a28fe9f..955182f 100644
--- a/src/lib/eldbus/eldbus_proxy.c
+++ b/src/lib/eldbus/eldbus_proxy.c
@@ -148,7 +148,10 @@ _eldbus_proxy_clear(Eldbus_Proxy *proxy)
148 148
149 eldbus_cbs_free_dispatch(&(proxy->cbs_free), proxy); 149 eldbus_cbs_free_dispatch(&(proxy->cbs_free), proxy);
150 if (proxy->props) 150 if (proxy->props)
151 eina_hash_free(proxy->props); 151 {
152 eina_hash_free(proxy->props);
153 proxy->props = NULL;
154 }
152 proxy->refcount = 0; 155 proxy->refcount = 0;
153} 156}
154 157