Commit: 724d61c90c6d3864f499cefedacf2c526bfe1830
Parent: 862e89c5792cca1f617e6522f6b4bf26358a0a2b
Author: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
Committer: Johan Hedberg <johan.hedberg@intel.com>
Date: 2012-10-29 13:06:03
Tree: 25e51c2ce5bee39e4101caff88761b0f29314fa6

AVDTP: Do not keep a internal reference Don't initialize reference with 1, instead always start disconnect timer when reference drops to 0, so in case nobody reclaims the session it automatically disconnect after 1 second and frees the memory.

Diffstat

M audio/avdtp.c | 204 ++++++++++++++++++++++++++++++++++++++++- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

1 files changed, 82 insertions(+), 122 deletions(-)

View Full Diff | Patch