From 2678ec03871234549f27bcd462dca5485eb91f1e Mon Sep 17 00:00:00 2001 From: Thomas Bluemel Date: Sat, 26 Jun 2004 08:09:55 +0000 Subject: [PATCH] fixed little gdi handle leak svn path=/trunk/; revision=9879 --- reactos/subsys/system/regedit/hexedit.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/reactos/subsys/system/regedit/hexedit.c b/reactos/subsys/system/regedit/hexedit.c index b52907017a8..718faaa233c 100644 --- a/reactos/subsys/system/regedit/hexedit.c +++ b/reactos/subsys/system/regedit/hexedit.c @@ -506,6 +506,11 @@ HEXEDIT_WM_NCDESTROY(PHEXEDIT_DATA hed) LocalFree(hed->hBuffer); } + if(hed->hFont) + { + DeleteObject(hed->hFont); + } + SetWindowLong(hed->hWndSelf, 0, 0); HeapFree(GetProcessHeap(), 0, hed);