diff options
author | JunsuChoi <jsuya.choi@samsung.com> | 2019-09-06 11:25:22 +0900 |
---|---|---|
committer | JunsuChoi <jsuya.choi@samsung.com> | 2019-09-06 11:25:22 +0900 |
commit | 65be14db240218494930da39da4bcfe916b77aa2 (patch) | |
tree | 8473cf0ade4bba476c16b8908d38a42dbee45714 | |
parent | 35f188239aef0c770551c532b04c724509a63170 (diff) |
eldbus_proxy: Prevent dangling pointer.
-rw-r--r-- | src/lib/eldbus/eldbus_proxy.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/lib/eldbus/eldbus_proxy.c b/src/lib/eldbus/eldbus_proxy.c index a28fe9f0e4..955182f4c2 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 | ||