Skip to content

Commit

Permalink
Merge pull request #335 from baconpaul/midi-name-mem-leak
Browse files Browse the repository at this point in the history
Fix a CFStringRef leak in RTMidi Port Name
  • Loading branch information
garyscavone authored Mar 22, 2024
2 parents 07d1df3 + 910c01a commit 25b8ab8
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 @@ -1378,6 +1378,7 @@ CFStringRef CreateEndpointName( MIDIEndpointRef endpoint, bool isExternal )
CFStringInsert( result, 0, CFSTR(" ") );

CFStringInsert( result, 0, str );
CFRelease(str);
}
}
}
Expand Down

0 comments on commit 25b8ab8

Please sign in to comment.