Fix coverity - dbus_connection_unref 78/157978/1
authorsooyeon.kim <sooyeon.kim@samsung.com>
Mon, 16 Oct 2017 02:27:38 +0000 (11:27 +0900)
committerWonnam Jang <wn.jang@samsung.com>
Fri, 27 Oct 2017 06:03:21 +0000 (06:03 +0000)
Change-Id: I89d89ac9becd8767465e9fb769735d7aec9c362d
Signed-off-by: sooyeon.kim <sooyeon.kim@samsung.com>
(cherry picked from commit baafd06f9a8bb908908f6f0c9f05e0c056d75b0b)

client/tts_dbus.c
server/ttsd_dbus.c

index 29248f8..73ef33f 100644 (file)
@@ -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;
        }
 }
index 5746e5d..c9015eb 100644 (file)
@@ -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;
        }
 }