Skip to content

Commit

Permalink
Delete struct rtaudio in rtaudio_destroy() (C api)
Browse files Browse the repository at this point in the history
  • Loading branch information
leonsal committed Jun 3, 2024
1 parent f92c4bc commit 82b282c
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 82b282c

Please sign in to comment.