winecoreaudio: Fix a potential leak. (Clang).
This commit is contained in:
parent
3ececfd2a5
commit
9a7993045e
|
@ -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)
|
||||||
|
|
Loading…
Reference in New Issue