Skip to content

Commit

Permalink
Merge pull request #336 from baconpaul/another-str-leak
Browse files Browse the repository at this point in the history
Fix another CFStr reference leak
  • Loading branch information
garyscavone committed Mar 28, 2024
2 parents 25b8ab8 + e33bb23 commit e8c8791
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions RtMidi.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1324,6 +1324,7 @@ CFStringRef CreateEndpointName( MIDIEndpointRef endpoint, bool isExternal )
MIDIObjectGetStringProperty( endpoint, kMIDIPropertyName, &str );
if ( str != NULL ) {
CFStringAppend( result, str );
CFRelease(str);
}

// some MIDI devices have a leading space in endpoint name. trim
Expand Down

0 comments on commit e8c8791

Please sign in to comment.