[TASKMGR] GraphCtrl: Use DeleteDC instead of DeleteObject to delete inst->hdcGraph

This reduces handle leak.
CORE-18014
This commit is contained in:
Katayama Hirofumi MZ 2023-06-15 14:53:39 +09:00
parent 2441e86963
commit dc14a9f6e0

View file

@ -132,7 +132,7 @@ GraphCtrl_Dispose(PTM_GRAPH_CONTROL inst)
DeleteObject(inst->hbmGraph);
if (inst->hdcGraph)
DeleteObject(inst->hdcGraph);
DeleteDC(inst->hdcGraph);
}
void