From a60ebdd3bfe4d735ef47926ac0951c1b0964e4c8 Mon Sep 17 00:00:00 2001 From: "sooyeon.kim" Date: Mon, 16 Oct 2017 11:27:38 +0900 Subject: [PATCH] Fix coverity - dbus_connection_unref Change-Id: I89d89ac9becd8767465e9fb769735d7aec9c362d Signed-off-by: sooyeon.kim (cherry picked from commit baafd06f9a8bb908908f6f0c9f05e0c056d75b0b) --- client/tts_dbus.c | 2 -- server/ttsd_dbus.c | 2 -- 2 files changed, 4 deletions(-) diff --git a/client/tts_dbus.c b/client/tts_dbus.c index 29248f8..73ef33f 100644 --- a/client/tts_dbus.c +++ b/client/tts_dbus.c @@ -158,12 +158,10 @@ static void __tts_dbus_connection_free() { if (NULL != g_conn_listener) { dbus_connection_close(g_conn_listener); - dbus_connection_unref(g_conn_listener); g_conn_listener = NULL; } if (NULL != g_conn_sender) { dbus_connection_close(g_conn_sender); - dbus_connection_unref(g_conn_sender); g_conn_sender = NULL; } } diff --git a/server/ttsd_dbus.c b/server/ttsd_dbus.c index 5746e5d..c9015eb 100644 --- a/server/ttsd_dbus.c +++ b/server/ttsd_dbus.c @@ -312,12 +312,10 @@ void __ttsd_dbus_connection_free() { if (NULL != g_conn_listener) { dbus_connection_close(g_conn_listener); - dbus_connection_unref(g_conn_listener); g_conn_listener = NULL; } if (NULL != g_conn_sender) { dbus_connection_close(g_conn_sender); - dbus_connection_unref(g_conn_sender); g_conn_sender = NULL; } } -- 2.7.4