From eaa28ab52bf18e0768dc2d9c810549b33f29af61 Mon Sep 17 00:00:00 2001 From: Tobias Weimer Date: Tue, 16 Dec 2014 16:10:23 +0000 Subject: Fixed memory leak git-svn-id: http://svn.miranda-ng.org/main/trunk@11468 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/TabSRMM/src/themes.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'plugins/TabSRMM/src/themes.cpp') 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; -- cgit v1.2.3