]> git.saurik.com Git - wxWidgets.git/blobdiff - samples/sound/sound.cpp
Use GTK_SELECTION_BROWSE instead of SINGLE for wxListBox in wxGTK.
[wxWidgets.git] / samples / sound / sound.cpp
index ab745c89ace95b0a734b2eb6a4ddd1bcd1513496..d41c7a2a809b97cf24cc7fa8a698d4a5e9299b47 100644 (file)
@@ -1002,8 +1002,7 @@ void MyFrame::OnSelectFile(wxCommandEvent& WXUNUSED(event))
 #endif // __WXMSW__
         m_useMemory = false;
 
-        delete m_sound;
-        m_sound = NULL;
+        wxDELETE(m_sound);
         NotifyUsingFile(m_soundFile);
     }
 #endif // wxUSE_FILEDLG
@@ -1026,8 +1025,7 @@ void MyFrame::OnSelectResource(wxCommandEvent& WXUNUSED(event))
     m_soundFile.clear();
     m_useMemory = false;
 
-    delete m_sound;
-    m_sound = NULL;
+    wxDELETE(m_sound);
 
     NotifyUsingFile(wxT("Windows WAV resource"));
 }