Merge pull request #1011 from LittleHuba/fix_audio

Fix crash when closing window with an active audio stream
presentation
Ulrich Huber 7 years ago committed by GitHub
commit 565fd6a66a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      src/util/audio/AudioPlayer.cpp
  2. 2
      src/util/audio/AudioRecorder.cpp

@ -14,6 +14,8 @@ AudioPlayer::~AudioPlayer()
{
XOJ_CHECK_TYPE(AudioPlayer);
this->stop();
delete this->portAudioConsumer;
this->portAudioConsumer = nullptr;

@ -16,6 +16,8 @@ AudioRecorder::~AudioRecorder()
{
XOJ_CHECK_TYPE(AudioRecorder);
this->stop();
delete this->portAudioProducer;
this->portAudioProducer = nullptr;

Loading…
Cancel
Save