Converting a bitmap to a region - memory leak fix
Posted
by Jean-Edouard LACHAND-ROBERT.
on October 4th, 1998
At the end of the BitmapToRegion function, the lines:
// Clean up SelectObject(hDC, holdBmp); DeleteDC(hDC);
must be changed into :
// Clean u GlobalFree(hData); SelectObject(hDC, holdBmp); DeleteDC(hDC);

Comments
There are no comments yet. Be the first to comment!