diff options
author | samr7 <samr7@126591fb-c623-4b62-a76d-97a8e4f34109> | 2008-12-20 06:21:25 +0000 |
---|---|---|
committer | samr7 <samr7@126591fb-c623-4b62-a76d-97a8e4f34109> | 2008-12-20 06:21:25 +0000 |
commit | 67577d0bf1eaeb1d4a2993fcc1ddf97e891e13d3 (patch) | |
tree | 30839aa39afd29fdcfff1c1c1f5f8a1211baf0e4 | |
parent | 6550354e5957ceb49ff09c08f9794b05d6d64607 (diff) | |
download | nohands-67577d0bf1eaeb1d4a2993fcc1ddf97e891e13d3.tar.gz |
Fix a reference leak in RfcommSdpLookupChannelComplete()
git-svn-id: http://nohands.svn.sourceforge.net/svnroot/nohands/trunk@74 126591fb-c623-4b62-a76d-97a8e4f34109
-rw-r--r-- | libhfp/rfcomm.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libhfp/rfcomm.cpp b/libhfp/rfcomm.cpp index 7ec6fd6..2a42203 100644 --- a/libhfp/rfcomm.cpp +++ b/libhfp/rfcomm.cpp @@ -500,13 +500,13 @@ RfcommSdpLookupChannelComplete(SdpTask *taskp) m_rfcomm_state = RFC_Disconnected; if (!RfcommConnect(channel, &error)) { Get(); + m_rfcomm_state = RFC_SdpLookupChannel; __Disconnect(&error, false); } /* * Drop the SDP lookup reference: - * Either RfcommConnect() acquired its own, or we acquired - * another one in the error path. + * If RfcommConnect() succeeded, it acquired its own. */ Put(); } |