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);
|
RemoveFontResource(pwszBuffer);
|
||||||
SendMessage( m_hWnd, WM_FONTCHANGE, 0, 0);
|
SendMessage( m_hWnd, WM_FONTCHANGE, 0, 0);
|
||||||
delete pwszBuffer;
|
delete [] pwszBuffer;
|
||||||
pwszBuffer = NULL;
|
pwszBuffer = NULL;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -143,7 +143,7 @@ public:
|
||||||
{
|
{
|
||||||
RemoveFontResource(pwszBuffer);
|
RemoveFontResource(pwszBuffer);
|
||||||
SendMessage( m_hWnd, WM_FONTCHANGE, 0, 0);
|
SendMessage( m_hWnd, WM_FONTCHANGE, 0, 0);
|
||||||
delete pwszBuffer;
|
delete [] pwszBuffer;
|
||||||
pwszBuffer = NULL;
|
pwszBuffer = NULL;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -156,7 +156,7 @@ public:
|
||||||
{
|
{
|
||||||
AddFontResource(pwszBuffer);
|
AddFontResource(pwszBuffer);
|
||||||
SendMessage( m_hWnd, WM_FONTCHANGE, 0, 0);
|
SendMessage( m_hWnd, WM_FONTCHANGE, 0, 0);
|
||||||
delete pwszBuffer;
|
delete [] pwszBuffer;
|
||||||
pwszBuffer = NULL;
|
pwszBuffer = NULL;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue