Skip to content

Commit

Permalink
fix: AudioPlayer's destructor (#24)
Browse files Browse the repository at this point in the history
  • Loading branch information
bdlukaa authored Jul 25, 2023
2 parents a887b6e + 9038743 commit d97eb5b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions just_audio_windows/windows/player.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -214,6 +214,7 @@ class AudioPlayer {
});
}
AudioPlayer::~AudioPlayer() {
player_channel_->SetMethodCallHandler(nullptr);
mediaPlayer.Close();
}

Expand Down

0 comments on commit d97eb5b

Please sign in to comment.