kdbus: modified to check null value 52/210652/1 accepted/tizen/unified/20190724.063829 submit/tizen/20190723.111553
authorsanghyeok.oh <sanghyeok.oh@samsung.com>
Tue, 23 Jul 2019 10:37:28 +0000 (19:37 +0900)
committersanghyeok.oh <sanghyeok.oh@samsung.com>
Tue, 23 Jul 2019 10:37:32 +0000 (19:37 +0900)
Change-Id: I630159453a711f9951ab09535c5417ec9040a0b9
Signed-off-by: sanghyeok.oh <sanghyeok.oh@samsung.com>
gio/gkdbus.c

index ef47d94..9160f84 100755 (executable)
@@ -1673,7 +1673,7 @@ _g_kdbus_send_Ping (GKDBusWorker *worker,
                     GError      **error)
 {
   GDBusMessage *ping_message;
-  GDBusMessage *reply;
+  GDBusMessage *reply = NULL;
   gboolean ret;
 
   ping_message = g_dbus_message_new_method_call (name, "/", "org.freedesktop.DBus.Peer", "Ping");
@@ -1681,7 +1681,8 @@ _g_kdbus_send_Ping (GKDBusWorker *worker,
 
   ret = _g_kdbus_send (worker, ping_message, &reply, 25000, NULL, NULL);
   g_object_unref (ping_message);
-  g_object_unref (reply);
+  if (reply)
+    g_object_unref (reply);
 
   if (!ret)
     {