Diff between 9d08490a5f653eb8e43702978d0b4ba61f349017 and ea2254fddb7f6835a0ce88991338cbc80ad1f3e1

Changed Files

File Additions Deletions Status
profiles/cups/main.c +1 -6 modified

Full Patch

diff --git a/profiles/cups/main.c b/profiles/cups/main.c
index 2079812..11ce72f 100644
--- a/profiles/cups/main.c
+++ b/profiles/cups/main.c
@@ -332,13 +332,11 @@ static gboolean device_is_printer(const char *adapter, const char *device_path, 
 static void remote_device_found(const char *adapter, const char *bdaddr,
 							const char *name)
 {
-	DBusMessage *message, *reply, *adapter_reply;
+	DBusMessage *message, *reply;
 	DBusMessageIter iter;
 	char *object_path = NULL;
 	char *id;
 
-	adapter_reply = NULL;
-
 	assert(adapter != NULL);
 
 	message = dbus_message_new_method_call("org.bluez", adapter,
@@ -347,9 +345,6 @@ static void remote_device_found(const char *adapter, const char *bdaddr,
 	dbus_message_iter_init_append(message, &iter);
 	dbus_message_iter_append_basic(&iter, DBUS_TYPE_STRING, &bdaddr);
 
-	if (adapter_reply != NULL)
-		dbus_message_unref(adapter_reply);
-
 	reply = dbus_connection_send_with_reply_and_block(conn,
 							message, -1, NULL);