(PlayFile): assign null after audio disposal.

This commit is contained in:
morkt 2015-03-31 14:40:00 +04:00
parent 1e70ac5961
commit b19f0117d2

View File

@ -814,6 +814,7 @@ namespace GARbro.GUI
{ {
m_audio.PlaybackStopped -= OnPlaybackStopped; m_audio.PlaybackStopped -= OnPlaybackStopped;
m_audio.Dispose(); m_audio.Dispose();
m_audio = null;
} }
var wave_stream = new WaveStreamImpl (sound); var wave_stream = new WaveStreamImpl (sound);
m_audio = new WaveOutEvent(); m_audio = new WaveOutEvent();