Skip to content

Commit

Permalink
Merge pull request #432 from leonsal/master
Browse files Browse the repository at this point in the history
Missing delete of struct rtaudio in rtaudio_destroy() (C api)
  • Loading branch information
garyscavone authored Jun 3, 2024
2 parents 5ac95f3 + 82b282c commit c5993f0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rtaudio_c.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ rtaudio_t rtaudio_create(rtaudio_api_t api) {
return audio;
}

void rtaudio_destroy(rtaudio_t audio) { delete audio->audio; }
void rtaudio_destroy(rtaudio_t audio) { delete audio->audio; delete audio; }

rtaudio_api_t rtaudio_current_api(rtaudio_t audio) {
return (rtaudio_api_t)audio->audio->getCurrentApi();
Expand Down

0 comments on commit c5993f0

Please sign in to comment.