From: Milind Murhekar Date: Thu, 1 Feb 2018 10:11:52 +0000 (+0530) Subject: free GVariant instance after sending the dbus signal X-Git-Tag: submit/tizen/20180318.231541~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=1fd453f1ec251fb8f3bc7cd11045da2cfb11186e;p=platform%2Fcore%2Fapi%2Ftethering.git free GVariant instance after sending the dbus signal Description: This patch frees the memory of GVariant instance which is used during emiting Dbus signal. Change-Id: Ie2314e8ffe872f4bd1e1c812b963f2902e9c4965 Signed-off-by: Milind Murhekar --- diff --git a/src/tethering.c b/src/tethering.c index 5b6e216..d0c728f 100755 --- a/src/tethering.c +++ b/src/tethering.c @@ -146,6 +146,7 @@ static void __send_dbus_signal(GDBusConnection *conn, const char *signal_name, c ERR("g_dbus_connection_emit_signal is failed because %s\n", error->message); //LCOV_EXCL_LINE g_error_free(error); //LCOV_EXCL_LINE } + g_variant_unref(message); } static bool __any_tethering_is_enabled(tethering_h tethering)