[osx] fixed mem leak
authordavilla <davilla@4pi.com>
Sun, 9 Oct 2011 16:50:18 +0000 (12:50 -0400)
committerdavilla <davilla@4pi.com>
Sun, 9 Oct 2011 16:58:04 +0000 (12:58 -0400)
xbmc/osx/HotKeyController.m

index 46d3478..0ecd6c9 100644 (file)
@@ -256,6 +256,9 @@ static CGEventRef tapEventCallback(CGEventTapProxy proxy, CGEventType type, CGEv
   CGEventTapEnable(m_eventPort, TRUE);
 
   CFRunLoopRun();
+  CFRelease(runLoopSource);
+  CFRelease(m_eventPort);
+  m_eventPort = NULL;
 }
 
 - (id)init