Commit e2264859 authored by Dmitry Timoshkov's avatar Dmitry Timoshkov Committed by Alexandre Julliard

riched20: Fix some GDI object leaks.

parent 05253f90
...@@ -1669,6 +1669,7 @@ void ME_DrawOLE(ME_Context *c, int x, int y, ME_Run *run, ...@@ -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:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment