Module: wine Branch: stable Commit: 4023330c4481c2e1e291091d91e612bafbaa73b0 URL: http://source.winehq.org/git/wine.git/?a=commit;h=4023330c4481c2e1e291091d91...
Author: Ken Thomases ken@codeweavers.com Date: Sun Oct 20 23:55:39 2013 -0500
winecoreaudio: Fix a potential leak. (Clang).
(cherry picked from commit 9a7993045e968ce33fdc51cccef0b3fa5bff1a7a)
---
dlls/winecoreaudio.drv/midi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dlls/winecoreaudio.drv/midi.c b/dlls/winecoreaudio.drv/midi.c index 491fc7e..8593e9c 100644 --- a/dlls/winecoreaudio.drv/midi.c +++ b/dlls/winecoreaudio.drv/midi.c @@ -810,8 +810,8 @@ void MIDIIn_SendMessage(MIDIMessage msg) { CFMessagePortSendRequest(messagePort, 0, data, 0.0, 0.0, NULL, NULL); CFRelease(data); - CFRelease(messagePort); } + CFRelease(messagePort); }
static CFDataRef MIDIIn_MessageHandler(CFMessagePortRef local, SInt32 msgid, CFDataRef data, void *info)