瀏覽代碼

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 );
 }