From 6aa0dde9cce0c1b2797c56ddefd1f94d28a7a643 Mon Sep 17 00:00:00 2001 From: ge0rdi Date: Fri, 3 Jan 2025 11:46:07 +0100 Subject: [PATCH] objmgr remove wrong context deletion Context was created using PhCreateAlloc (ref-counted object) so it is wrong to call PhFree on it. It will be automatically freed when property sheet is destroyed. --- plugins/ExtendedTools/objprp.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/plugins/ExtendedTools/objprp.c b/plugins/ExtendedTools/objprp.c index 2ca46ff490e1..63cb2e55ef2c 100644 --- a/plugins/ExtendedTools/objprp.c +++ b/plugins/ExtendedTools/objprp.c @@ -1821,7 +1821,6 @@ INT_PTR CALLBACK EtpObjHandlesPageDlgProc( { PhDeleteLayoutManager(&context->LayoutManager); PhRemoveWindowContext(hwndDlg, PH_WINDOW_CONTEXT_DEFAULT); - PhFree(context); } break; case WM_KEYDOWN: @@ -2396,7 +2395,6 @@ INT_PTR CALLBACK EtpWinStaPageDlgProc( { PhDeleteLayoutManager(&context->LayoutManager); PhRemoveWindowContext(hwndDlg, PH_WINDOW_CONTEXT_DEFAULT); - PhFree(context); } break; case WM_NOTIFY: