mirror of https://github.com/axmolengine/axmol.git
issue #347 lost [] in 'delete array'
This commit is contained in:
parent
ee0c6e56d7
commit
bbc4bbeb6c
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue