diff options
author | Jiyong Min <jiyong.min@samsung.com> | 2017-04-11 13:07:40 +0900 |
---|---|---|
committer | Jiyong Min <jiyong.min@samsung.com> | 2017-04-11 13:09:14 +0900 |
commit | 741b5098e8847625828e4ebc1d03802f182ce849 (patch) | |
tree | 516fadfbbb315b23b4e65db340332b1936e5ed84 | |
parent | 4d82acd6597238a8c9e5434f5d1bf80322bf698e (diff) | |
download | media-controller-741b5098e8847625828e4ebc1d03802f182ce849.tar.gz media-controller-741b5098e8847625828e4ebc1d03802f182ce849.tar.bz2 media-controller-741b5098e8847625828e4ebc1d03802f182ce849.zip |
Fix memory leak for 'key' valuesubmit/tizen/20170411.062346accepted/tizen/unified/20170411.164345
Change-Id: I9f9dc5d7d472decb122644708beb9e3c29c87597
Signed-off-by: Jiyong Min <jiyong.min@samsung.com>
-rwxr-xr-x | src/media_controller_ipc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/media_controller_ipc.c b/src/media_controller_ipc.c index bc621eb..356098e 100755 --- a/src/media_controller_ipc.c +++ b/src/media_controller_ipc.c @@ -46,7 +46,6 @@ static void __mc_ipc_signal_cb(GDBusConnection *connection, GVariant *parameters, gpointer user_data) { - char *key = __make_key_for_map(interface_name, signal_name); GList *listener_list = (GList *)user_data; mc_ipc_listener_s *listener = NULL; unsigned int i = 0; @@ -61,6 +60,7 @@ static void __mc_ipc_signal_cb(GDBusConnection *connection, return; } + char *key = __make_key_for_map(interface_name, signal_name); unsigned int listener_cnt = g_list_length(listener_list); for (i = 0; i < listener_cnt; i++) { listener = (mc_ipc_listener_s *)g_list_nth_data(listener_list, i); |