Переглянути джерело

CoreMidi string release added to avoid memory leak.

Gary Scavone 11 роки тому
батько
коміт
ce21fe6205
1 змінених файлів з 2 додано та 0 видалено
  1. 2 0
      RtMidi.cpp

+ 2 - 0
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 );
 }