]> git.saurik.com Git - wxWidgets.git/blobdiff - src/unix/sound.cpp
Rename delegates to try and stop name clashes, probably with wxWebKitCtrl.
[wxWidgets.git] / src / unix / sound.cpp
index 37b8469aadabe39cc111ed4ceeffdaaf93eeff6c..500e8617182a2694fcdf62ac833096034204e19d 100644 (file)
@@ -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