summaryrefslogtreecommitdiff
path: root/src/modules/skin/sounds.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules/skin/sounds.cpp')
-rw-r--r--src/modules/skin/sounds.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/modules/skin/sounds.cpp b/src/modules/skin/sounds.cpp
index f499a39a4d..3cc06bd20d 100644
--- a/src/modules/skin/sounds.cpp
+++ b/src/modules/skin/sounds.cpp
@@ -33,7 +33,7 @@ struct SoundItem
__inline TCHAR* getSection() const { return LangPackTranslateStringT(hLangpack, ptszSection); }
__inline TCHAR* getDescr() const { return LangPackTranslateStringT(hLangpack, ptszDescription); }
- __inline ~SoundItem()
+ __inline void clear(void)
{
mir_free(name);
mir_free(ptszSection);
@@ -441,5 +441,8 @@ int LoadSkinSounds(void)
void UnloadSkinSounds(void)
{
+ for (int i=0; i < arSounds.getCount(); i++)
+ arSounds[i].clear();
+
arSounds.destroy();
}