summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLuiz Augusto von Dentz <luiz.dentz@openbossa.org>2008-10-01 12:34:06 -0300
committerLuiz Augusto von Dentz <luiz.dentz@openbossa.org>2008-10-01 12:34:53 -0300
commit876f306ab4a819e747921c47717eb2d93d1792bb (patch)
tree2bf115a65fe27e948f18d3a16b3708b304bbbf7a
parent4aee8d325ccfe748463485d7354ecf15b43b001c (diff)
Fix potential invalid read.
-rw-r--r--audio/sink.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/audio/sink.c b/audio/sink.c
index c6d2dc48..99d49910 100644
--- a/audio/sink.c
+++ b/audio/sink.c
@@ -381,11 +381,11 @@ static void discovery_complete(struct avdtp *session, GSList *seps, struct avdtp
return;
failed:
+ error_failed(pending->conn, pending->msg, "Stream setup failed");
pending_request_free(pending);
sink->connect = NULL;
avdtp_unref(sink->session);
sink->session = NULL;
- error_failed(pending->conn, pending->msg, "Stream setup failed");
}
static DBusMessage *sink_connect(DBusConnection *conn,