X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/9a83f860948059b0273b5cc6d9e43fadad3ebfca..d2e66707deb10dea6f92e3e4092f8a43ef942a5d:/src/unix/sound.cpp diff --git a/src/unix/sound.cpp b/src/unix/sound.cpp index 37b8469aad..500e861718 100644 --- a/src/unix/sound.cpp +++ b/src/unix/sound.cpp @@ -570,8 +570,7 @@ bool wxSound::Create(int size, const wxByte* data) Stop(); - delete ms_backend; - ms_backend = NULL; + wxDELETE(ms_backend); #if wxUSE_LIBSDL && wxUSE_PLUGINS delete ms_backendSDL; #endif