https://git.reactos.org/?p=reactos.git;a=commitdiff;h=dc14a9f6e0d9b6ce3ccc84daba923edb1cc0167f
commit dc14a9f6e0d9b6ce3ccc84daba923edb1cc0167f Author: Katayama Hirofumi MZ <[email protected]> AuthorDate: Thu Jun 15 14:53:39 2023 +0900 Commit: Katayama Hirofumi MZ <[email protected]> CommitDate: Thu Jun 15 14:55:25 2023 +0900 [TASKMGR] GraphCtrl: Use DeleteDC instead of DeleteObject to delete inst->hdcGraph This reduces handle leak. CORE-18014 --- base/applications/taskmgr/graphctl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/base/applications/taskmgr/graphctl.c b/base/applications/taskmgr/graphctl.c index 4253eeadc35..78bc157db3d 100644 --- a/base/applications/taskmgr/graphctl.c +++ b/base/applications/taskmgr/graphctl.c @@ -132,7 +132,7 @@ GraphCtrl_Dispose(PTM_GRAPH_CONTROL inst) DeleteObject(inst->hbmGraph); if (inst->hdcGraph) - DeleteObject(inst->hdcGraph); + DeleteDC(inst->hdcGraph); } void
