X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/9a83f860948059b0273b5cc6d9e43fadad3ebfca..773db5dfb386719b34ea90c1885ca1f082717b7f:/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