Huw Davies : gdi32: Free the client-side emf dc info.
Alexandre Julliard
julliard at winehq.org
Tue May 24 15:55:00 CDT 2022
Module: wine
Branch: master
Commit: 6a9a80679d7b0cfe2b83727caf48809ba2280ea1
URL: https://source.winehq.org/git/wine.git/?a=commit;h=6a9a80679d7b0cfe2b83727caf48809ba2280ea1
Author: Huw Davies <huw at codeweavers.com>
Date: Tue May 24 12:25:08 2022 +0100
gdi32: Free the client-side emf dc info.
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;
}
/*******************************************************************
More information about the wine-cvs
mailing list