mirror of
git://source.winehq.org/git/wine.git
synced 2024-09-14 19:25:39 +00:00
riched20: Fix some GDI object leaks.
This commit is contained in:
parent
05253f900f
commit
e2264859c8
|
@ -1669,6 +1669,7 @@ void ME_DrawOLE(ME_Context *c, int x, int y, ME_Run *run,
|
||||||
hMemDC, 0, 0, dibsect.dsBm.bmWidth,
|
hMemDC, 0, 0, dibsect.dsBm.bmWidth,
|
||||||
dibsect.dsBm.bmHeight, SRCCOPY);
|
dibsect.dsBm.bmHeight, SRCCOPY);
|
||||||
}
|
}
|
||||||
|
DeleteDC(hMemDC);
|
||||||
if (!stgm.pUnkForRelease) DeleteObject(stgm.u.hBitmap);
|
if (!stgm.pUnkForRelease) DeleteObject(stgm.u.hBitmap);
|
||||||
break;
|
break;
|
||||||
case TYMED_ENHMF:
|
case TYMED_ENHMF:
|
||||||
|
|
Loading…
Reference in a new issue