- If body is floating, memory corruption is occured when msg get body
in g_dbus_connection_send_message_with_reply()
So, this problem can be solved by increase reference count of
body when body is floating.
Signed-off-by: seungha.son <seungha.son@samsung.com>
Change-Id: I166e0a2fb9e334c40fa9cfc37a998e5887492c4a
/* LCOV_EXCL_STOP */
}
+ if (g_variant_is_floating(body))
+ g_variant_ref(body);
+
if (body != NULL)
g_dbus_message_set_body(msg, body);
(GAsyncReadyCallback)_send_message_with_reply_sync_cb,
cb_item);
+ if (msg)
+ g_object_unref(msg);
+
SHORTCUT_DBG("_send_async_shortcut done !!");
return SHORTCUT_ERROR_NONE;
}