From dc14a9f6e0d9b6ce3ccc84daba923edb1cc0167f Mon Sep 17 00:00:00 2001 From: Katayama Hirofumi MZ Date: Thu, 15 Jun 2023 14:53:39 +0900 Subject: [PATCH] [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