summaryrefslogtreecommitdiff
path: root/plugins/TabSRMM/src/themes.cpp
diff options
context:
space:
mode:
authorTobias Weimer <wishmaster51@googlemail.com>2014-12-16 16:10:23 +0000
committerTobias Weimer <wishmaster51@googlemail.com>2014-12-16 16:10:23 +0000
commiteaa28ab52bf18e0768dc2d9c810549b33f29af61 (patch)
treea2010d30f8d69e8ac13e94142e7510a6a6b3c136 /plugins/TabSRMM/src/themes.cpp
parent9b99778dc834d59f0951d7d63da21d6018354d4c (diff)
Fixed memory leak
git-svn-id: http://svn.miranda-ng.org/main/trunk@11468 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/TabSRMM/src/themes.cpp')
-rw-r--r--plugins/TabSRMM/src/themes.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/TabSRMM/src/themes.cpp b/plugins/TabSRMM/src/themes.cpp
index 4721f218fa..3081a1a70b 100644
--- a/plugins/TabSRMM/src/themes.cpp
+++ b/plugins/TabSRMM/src/themes.cpp
@@ -1369,7 +1369,6 @@ void CSkin::Load(void)
if (!m_tszFileName[0] || !::PathFileExists(m_tszFileName))
return;
- TCHAR *szSections = (TCHAR*)mir_alloc(6004);
int i = 1, j = 0;
UINT data;
TCHAR buffer[500];
@@ -1403,6 +1402,7 @@ void CSkin::Load(void)
m_DisableScrollbars = M.GetByte("disableVScroll", 0) ? true : false;
+ TCHAR *szSections = (TCHAR*)mir_alloc(6004);
memset(szSections, 0, 6000);
GetPrivateProfileSectionNames(szSections, 3000, m_tszFileName);
szSections[3001] = szSections[3000] = 0;