tsk tsk tsk... Memory problems fixed

git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@2688 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
kichik 2003-06-28 12:31:43 +00:00
parent 3c10c29237
commit d20612bdb2
3 changed files with 8 additions and 8 deletions

View file

@ -275,7 +275,7 @@ void CDialogTemplate::SetFont(char* szFaceName, WORD wFontSize) {
}
m_dwStyle |= DS_SETFONT;
if (m_szFont) delete [] m_szFont;
m_szFont = new char[lstrlen(szFaceName)];
m_szFont = new char[lstrlen(szFaceName)+1];
lstrcpy(m_szFont, szFaceName);
m_sFontSize = wFontSize;
}
@ -596,4 +596,4 @@ DWORD CDialogTemplate::GetSize() {
}
return dwSize;
}
}