summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohan Hedberg <johan.hedberg@nokia.com>2007-08-11 22:04:43 +0000
committerJohan Hedberg <johan.hedberg@nokia.com>2007-08-11 22:04:43 +0000
commit9928a07a995d67f038f748cd05bec5147a9f3de2 (patch)
tree890f194c29f9e082169e539408d5ef3a1597483f
parent2edfb968d931f6ec83964aadb5883dd330b168a2 (diff)
avdtp_get_internal should not increase the refcount
-rw-r--r--audio/avdtp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/audio/avdtp.c b/audio/avdtp.c
index 0c4a16cf..387c74e5 100644
--- a/audio/avdtp.c
+++ b/audio/avdtp.c
@@ -1673,7 +1673,7 @@ static struct avdtp *avdtp_get_internal(bdaddr_t *src, bdaddr_t *dst)
session = find_session(src, dst);
if (session)
- return avdtp_ref(session);
+ return session;
session = g_new0(struct avdtp, 1);