[PATCH 2/2] gdi32: Free the client-side emf dc info.
Huw Davies
wine at gitlab.winehq.org
Tue May 24 06:38:28 CDT 2022
From: Huw Davies <huw at codeweavers.com>
Signed-off-by: Huw Davies <huw at codeweavers.com>
---
dlls/gdi32/emfdc.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/dlls/gdi32/emfdc.c b/dlls/gdi32/emfdc.c
index d215162d8d0..56327abff8a 100644
--- a/dlls/gdi32/emfdc.c
+++ b/dlls/gdi32/emfdc.c
@@ -2321,6 +2321,8 @@ void EMFDC_DeleteDC( DC_ATTR *dc_attr )
if (emf->handles[index])
GDI_hdc_not_using_object( emf->handles[index], emf->dc_attr->hdc );
HeapFree( GetProcessHeap(), 0, emf->handles );
+ HeapFree( GetProcessHeap(), 0, emf );
+ dc_attr->emf = NULL;
}
/*******************************************************************
--
GitLab
https://gitlab.winehq.org/wine/wine/-/merge_requests/121
More information about the wine-devel
mailing list