diff options
| author | Don Kim | 2014-05-23 18:17:05 +0900 |
|---|---|---|
| committer | Don Kim | 2014-05-23 18:17:05 +0900 |
| commit | 5cdd77c6d1efd68b7443f5c8f2d6d187a5e66c60 (patch) | |
| tree | cb3b95569d54a52344ad81c93e9d5839053df439 | |
| parent | 7c104fe68c4c8228d326b2414bffe381c624bf67 (diff) | |
| download | DDHidLib-5cdd77c6d1efd68b7443f5c8f2d6d187a5e66c60.tar.bz2 | |
Fixed DDHidQueue to prevent mEventSource from leaking.
| -rw-r--r-- | lib/DDHidQueue.m | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/DDHidQueue.m b/lib/DDHidQueue.m index 8f44698..4575dff 100644 --- a/lib/DDHidQueue.m +++ b/lib/DDHidQueue.m @@ -120,6 +120,8 @@ static void queueCallbackFunction(void* target, IOReturn result, void* refcon, CFRunLoopRemoveSource([mRunLoop getCFRunLoop], mEventSource, kCFRunLoopDefaultMode); (*mQueue)->stop(mQueue); [mRunLoop release]; + CFRelease(mEventSource); + mRunLoop = nil; mStarted = NO; } |
