X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/8907154c1a8a6882c6797d1f16393ddfb23e7f3a..74a8f67d96591cec101def2a7d47c64072aff7fd:/src/msw/sound.cpp diff --git a/src/msw/sound.cpp b/src/msw/sound.cpp index 788f3e63d3..334afd484d 100644 --- a/src/msw/sound.cpp +++ b/src/msw/sound.cpp @@ -1,5 +1,5 @@ ///////////////////////////////////////////////////////////////////////////// -// Name: sound.cpp +// Name: src/msw/sound.cpp // Purpose: wxSound // Author: Julian Smart // Modified by: 2005-07-29: Vadim Zeitlin: redesign @@ -70,7 +70,7 @@ private: GlobalPtr m_waveData; GlobalPtrLock m_waveDataPtr; - DECLARE_NO_COPY_CLASS(wxSoundDataMemory) + wxDECLARE_NO_COPY_CLASS(wxSoundDataMemory); }; // class for sound files and resources @@ -90,7 +90,7 @@ private: const wxString m_name; const bool m_isResource; - DECLARE_NO_COPY_CLASS(wxSoundDataFile) + wxDECLARE_NO_COPY_CLASS(wxSoundDataFile); }; // ============================================================================ @@ -144,11 +144,7 @@ wxSound::~wxSound() void wxSound::Free() { - if ( m_data ) - { - delete m_data; - m_data = NULL; - } + wxDELETE(m_data); } bool wxSound::CheckCreatedOk()