avdtp_get_internal should not increase the refcount

This commit is contained in:
Johan Hedberg 2007-08-11 22:04:43 +00:00
parent 2edfb968d9
commit 9928a07a99

View File

@ -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);