issue #347 lost [] in 'delete array'

This commit is contained in:
liswei 2011-08-04 13:47:21 +08:00
parent ee0c6e56d7
commit bbc4bbeb6c
1 changed files with 3 additions and 3 deletions

View File

@ -63,7 +63,7 @@ public:
{
RemoveFontResource(pwszBuffer);
SendMessage( m_hWnd, WM_FONTCHANGE, 0, 0);
delete pwszBuffer;
delete [] pwszBuffer;
pwszBuffer = NULL;
}
}
@ -143,7 +143,7 @@ public:
{
RemoveFontResource(pwszBuffer);
SendMessage( m_hWnd, WM_FONTCHANGE, 0, 0);
delete pwszBuffer;
delete [] pwszBuffer;
pwszBuffer = NULL;
}
}
@ -156,7 +156,7 @@ public:
{
AddFontResource(pwszBuffer);
SendMessage( m_hWnd, WM_FONTCHANGE, 0, 0);
delete pwszBuffer;
delete [] pwszBuffer;
pwszBuffer = NULL;
}
}