From ce21fe6205e42063f74443a12558f447ed0a5959 Mon Sep 17 00:00:00 2001 From: Gary Scavone Date: Tue, 15 Jul 2014 14:09:53 -0400 Subject: CoreMidi string release added to avoid memory leak. --- RtMidi.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/RtMidi.cpp b/RtMidi.cpp index a44e4b0..82a9dae 100644 --- a/RtMidi.cpp +++ b/RtMidi.cpp @@ -801,6 +801,8 @@ static CFStringRef ConnectedEndpointName( MIDIEndpointRef endpoint ) if ( anyStrings ) return result; + CFRelease( result ); + // Here, either the endpoint had no connections, or we failed to obtain names return EndpointName( endpoint, false ); } -- cgit v1.2.3