There is a confirmed memory leak in the callback of the function EnumWindows ()
This line is wrong
Code: Select all
...
hb_arrayAddForward (pArray, hb_itemPutNLL (NULL, (LONG_PTR) hWnd));
Code: Select all
PHB_ITEM pHWnd = hb_itemPutNLL (NULL, (LONG_PTR) hWnd);
hb_arrayAddForward (pArray, pHWnd);
hb_itemRelease( pHWnd );
...