Fixed memory leak.

Closes #3417
This commit is contained in:
orbitcowboy 2017-06-19 14:41:41 +02:00 committed by Don HO
parent fb998007d7
commit 269a065bb9
1 changed files with 1 additions and 1 deletions

View File

@ -588,9 +588,9 @@ void Accelerator::updateShortcuts()
if (_hFindAccTab)
::DestroyAcceleratorTable(_hFindAccTab);
ACCEL *tmpFindAccelArray = new ACCEL[1];
if (pSearchFindAccel != nullptr)
{
ACCEL *tmpFindAccelArray = new ACCEL[1];
tmpFindAccelArray[0] = *pSearchFindAccel;
_hFindAccTab = ::CreateAcceleratorTable(tmpFindAccelArray, 1);
delete[] tmpFindAccelArray;