Remove the json free at module cleanup because already freed 35/200835/1 accepted/tizen/unified/20190320.082238 submit/tizen/20190319.020059
authorYoungHun Kim <yh8004.kim@samsung.com>
Tue, 5 Mar 2019 02:53:25 +0000 (11:53 +0900)
committerYoungHun Kim <yh8004.kim@samsung.com>
Tue, 5 Mar 2019 02:53:36 +0000 (11:53 +0900)
Change-Id: I37565f58a87c1e2b1d9d785d5847515c8181f7cd

packaging/mused.spec
server/src/muse_server_ipc.c

index 60851b5..86e30b3 100644 (file)
@@ -1,6 +1,6 @@
 Name:       mused
 Summary:    A multimedia daemon
-Version:    0.3.70
+Version:    0.3.71
 Release:    0
 Group:      System/Libraries
 License:    Apache-2.0 and BSD-3-Clause
index a946fd8..bb7d6e2 100644 (file)
 #define DATA_WORKER_QDATA_MAX_SIZE                     (3840 * 2160 * 4) /* UHD BGRA8888 */
 #define UNLIMITED_INSTANCE                                     -1
 
-static void _ms_ipc_module_cleanup(muse_module_h m, void *jobj);
+static void _ms_ipc_module_cleanup(muse_module_h m);
 static gboolean _ms_ipc_module_instance_creation_is_allowed(int module_idx);
 static gpointer _ms_ipc_dispatch_worker(gpointer data);
 static gboolean _ms_ipc_data_processing(int fd, muse_recv_data_head_t *header, muse_channel_info_t *ch);
 static gpointer _ms_ipc_data_worker(gpointer data);
 
-static void _ms_ipc_module_cleanup(muse_module_h m, void *jobj)
+static void _ms_ipc_module_cleanup(muse_module_h m)
 {
        muse_return_if_fail(m);
 
@@ -55,8 +55,6 @@ static void _ms_ipc_module_cleanup(muse_module_h m, void *jobj)
 
        ms_connection_unregister(m);
 
-       muse_core_msg_object_free(jobj);
-
        ms_exit_worker(m);
 }
 
@@ -101,7 +99,7 @@ static gpointer _ms_ipc_dispatch_worker(gpointer data)
        while (attempt_to_dispatch) {
                memset(m->recv_msg, 0x00, sizeof(m->recv_msg));
 
-               for (i = 0 ; i < MUSE_NUM_FD ; i++)
+               for (i = 0; i < MUSE_NUM_FD; i++)
                        m->ch[MUSE_CHANNEL_MSG].tbm_fd[i] = -1;
 
                len = muse_core_msg_recv_fd(fd, m->recv_msg, MUSE_MSG_MAX_LENGTH, m->ch[MUSE_CHANNEL_MSG].tbm_fd);
@@ -217,7 +215,7 @@ static gpointer _ms_ipc_dispatch_worker(gpointer data)
                }
        }
 
-       _ms_ipc_module_cleanup(m, jobj);
+       _ms_ipc_module_cleanup(m);
 
        LOGD("Leave");
        return NULL;