From 004ccc9f57b8ad5f514a4e6a096492e00363c21c Mon Sep 17 00:00:00 2001 From: Marcel Holtmann Date: Mon, 20 Oct 2008 23:16:20 +0200 Subject: [PATCH] obexd: Call unref on the right data structures --- obexd/client/main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/obexd/client/main.c b/obexd/client/main.c index ecb377db3..04901ad09 100644 --- a/obexd/client/main.c +++ b/obexd/client/main.c @@ -156,8 +156,8 @@ static DBusMessage *send_files(DBusConnection *connection, return NULL; g_ptr_array_free(data->files, TRUE); - dbus_message_unref(message); - dbus_connection_unref(connection); + dbus_message_unref(data->message); + dbus_connection_unref(data->connection); g_free(data->sender); g_free(data->agent); g_free(data); -- 2.47.3