diff options
author | George Hazan <george.hazan@gmail.com> | 2012-06-21 12:23:59 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2012-06-21 12:23:59 +0000 |
commit | 46068b4baad1c69d23818de2d0a51c6be435b9f9 (patch) | |
tree | 72395386fff154561a94f5ba4304560f2c596ad2 /src/modules/skin | |
parent | 57abc51aad272a656282a52a460a47abe24e07d6 (diff) |
crash fix in sounds.cpp
git-svn-id: http://svn.miranda-ng.org/main/trunk@508 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'src/modules/skin')
-rw-r--r-- | src/modules/skin/sounds.cpp | 5 |
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();
}
|