Ensure proper lifetime for the dbus server handler 86/277886/1 accepted/tizen_6.5_unified tizen_6.5 accepted/tizen/6.5/unified/20220715.141142 submit/tizen_6.5/20220714.103832
authorMichal Bloch <m.bloch@samsung.com>
Thu, 14 Jul 2022 10:08:46 +0000 (12:08 +0200)
committerHyotaek Shim <hyotaek.shim@samsung.com>
Thu, 14 Jul 2022 10:37:15 +0000 (10:37 +0000)
Change-Id: I01f4041eeb1ad4ba3f8139c13ff973183e6c3077
Signed-off-by: Michal Bloch <m.bloch@samsung.com>
(cherry picked from commit c86500e466160cd9852c6ca28f5bc105e18b0721)

src/daemon/main.c

index b13b607..608e27f 100755 (executable)
@@ -221,9 +221,12 @@ main (int argc, char **argv)
 
     DBG ("");
 
-    if(_server) g_object_unref (_server);
+    if(_server) {
+        gumd_dbus_server_stop(_server);
+        g_object_unref (_server);
+    }
     DBG ("");
+
     if (main_loop) g_main_loop_unref (main_loop);
 
     DBG("Clean shutdown");