riched20: Fix some GDI object leaks.

This commit is contained in:
Dmitry Timoshkov 2012-01-28 20:27:03 +08:00 committed by Alexandre Julliard
parent 05253f900f
commit e2264859c8

View file

@ -1669,6 +1669,7 @@ void ME_DrawOLE(ME_Context *c, int x, int y, ME_Run *run,
hMemDC, 0, 0, dibsect.dsBm.bmWidth,
dibsect.dsBm.bmHeight, SRCCOPY);
}
DeleteDC(hMemDC);
if (!stgm.pUnkForRelease) DeleteObject(stgm.u.hBitmap);
break;
case TYMED_ENHMF: