diff --git a/plugins/spu2-x/src/Wavedump_wav.cpp b/plugins/spu2-x/src/Wavedump_wav.cpp index 62f48100af..48271fd2f0 100644 --- a/plugins/spu2-x/src/Wavedump_wav.cpp +++ b/plugins/spu2-x/src/Wavedump_wav.cpp @@ -110,7 +110,9 @@ void RecordStart() void RecordStop() { - safe_delete( m_wavrecord ); + WavOutFile* t = m_wavrecord; + m_wavrecord = NULL; + delete t; } void RecordWrite( const StereoOut16& sample )