From e2264859c8f8837b808e2ef9ce1dc0fe6b571e0c Mon Sep 17 00:00:00 2001 From: Dmitry Timoshkov Date: Sat, 28 Jan 2012 20:27:03 +0800 Subject: [PATCH] riched20: Fix some GDI object leaks. --- dlls/riched20/richole.c | 1 + 1 file changed, 1 insertion(+) diff --git a/dlls/riched20/richole.c b/dlls/riched20/richole.c index 8e902049cb0..9c74cfe4746 100644 --- a/dlls/riched20/richole.c +++ b/dlls/riched20/richole.c @@ -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: