From 46068b4baad1c69d23818de2d0a51c6be435b9f9 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Thu, 21 Jun 2012 12:23:59 +0000 Subject: crash fix in sounds.cpp git-svn-id: http://svn.miranda-ng.org/main/trunk@508 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- src/modules/skin/sounds.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/modules/skin') 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(); } -- cgit v1.2.3