Эх сурвалжийг харах

CoreMidi string release added to avoid memory leak.

Gary Scavone 11 жил өмнө
parent
commit
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 );
 }