winecoreaudio: Fix a potential leak. (Clang).

This commit is contained in:
Ken Thomases 2013-10-20 23:55:39 -05:00 committed by Alexandre Julliard
parent 3ececfd2a5
commit 9a7993045e
1 changed files with 1 additions and 1 deletions

View File

@ -810,8 +810,8 @@ void MIDIIn_SendMessage(MIDIMessage msg)
{ {
CFMessagePortSendRequest(messagePort, 0, data, 0.0, 0.0, NULL, NULL); CFMessagePortSendRequest(messagePort, 0, data, 0.0, 0.0, NULL, NULL);
CFRelease(data); CFRelease(data);
CFRelease(messagePort);
} }
CFRelease(messagePort);
} }
static CFDataRef MIDIIn_MessageHandler(CFMessagePortRef local, SInt32 msgid, CFDataRef data, void *info) static CFDataRef MIDIIn_MessageHandler(CFMessagePortRef local, SInt32 msgid, CFDataRef data, void *info)