From db616b0690618329099c224a818dae510553457e Mon Sep 17 00:00:00 2001 From: feal87 Date: Tue, 2 Mar 2010 15:52:03 +0000 Subject: [PATCH] SPU2-X : The safe_delete on the WaveDump wasn't "safe" enough and was causing the error on end of wav dump. Test it and tell me if it works fine now. (F12 is the key for start-end) git-svn-id: http://pcsx2.googlecode.com/svn/trunk@2659 96395faa-99c1-11dd-bbfe-3dabce05a288 --- plugins/spu2-x/src/Wavedump_wav.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 )