Ensure proper lifetime for the dbus server handler 83/277883/2 accepted/tizen_7.0_unified accepted/tizen_7.0_unified_hotfix tizen_7.0 tizen_7.0_hotfix accepted/tizen/7.0/unified/20221110.061205 accepted/tizen/7.0/unified/hotfix/20221116.110851 accepted/tizen/8.0/unified/20231005.094940 accepted/tizen/unified/20220715.141245 submit/tizen/20220714.103748 submit/tizen/20220714.103758 tizen_7.0_m2_release tizen_8.0_m2_release
authorMichal Bloch <m.bloch@samsung.com>
Thu, 14 Jul 2022 10:08:46 +0000 (12:08 +0200)
committerMichal Bloch <m.bloch@samsung.com>
Thu, 14 Jul 2022 10:11:21 +0000 (12:11 +0200)
Change-Id: I01f4041eeb1ad4ba3f8139c13ff973183e6c3077
Signed-off-by: Michal Bloch <m.bloch@samsung.com>
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");