Memory leak in the C-function EnumWindows ()
Posted: Fri Aug 21, 2015 9:02 am
Hi Claudio,
There is a confirmed memory leak in the callback of the function EnumWindows ()
This line is wrong
The simple fix of this problem is below
Hope that helps 
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 );
...
