diff options
| author | Gary Scavone <gary@music.mcgill.ca> | 2014-07-15 14:09:53 -0400 |
|---|---|---|
| committer | Gary Scavone <gary@music.mcgill.ca> | 2014-07-15 14:09:53 -0400 |
| commit | ce21fe6205e42063f74443a12558f447ed0a5959 (patch) | |
| tree | 276e9a909c1b3668ac38d280897eb8a350697d18 | |
| parent | 2c7a6664d69ed39d9d1d4312231c064e9b1549dd (diff) | |
CoreMidi string release added to avoid memory leak.
| -rw-r--r-- | RtMidi.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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 ); } |
