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 29248f89b1bff226b548bc9d179cb79ae7c2dcdf..73ef33fd81c3fbd13eaecfffdfde17fedc053a31 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 5746e5d54179c40b12a00abf2eaf871b1085f77d..c9015ebe43e6bd568c6853c295a1a8f7113561b3 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;
        }
 }