Browse Source

CoreMidi string release added to avoid memory leak.

Gary Scavone 11 năm trước cách đây
mục cha
commit
ce21fe6205
1 tập tin đã thay đổi với 2 bổ sung0 xóa
  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 );
 }