소스 검색

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