summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGary Scavone <gary@music.mcgill.ca>2014-07-15 14:09:53 -0400
committerGary Scavone <gary@music.mcgill.ca>2014-07-15 14:09:53 -0400
commitce21fe6205e42063f74443a12558f447ed0a5959 (patch)
tree276e9a909c1b3668ac38d280897eb8a350697d18
parent2c7a6664d69ed39d9d1d4312231c064e9b1549dd (diff)
CoreMidi string release added to avoid memory leak.
-rw-r--r--RtMidi.cpp2
1 files changed, 2 insertions, 0 deletions
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 );
}