mirror of
https://github.com/reactos/reactos.git
synced 2026-06-01 00:40:26 +08:00
[TASKMGR] GraphCtrl: Use DeleteDC instead of DeleteObject to delete inst->hdcGraph
This reduces handle leak. CORE-18014
This commit is contained in:
@@ -132,7 +132,7 @@ GraphCtrl_Dispose(PTM_GRAPH_CONTROL inst)
|
||||
DeleteObject(inst->hbmGraph);
|
||||
|
||||
if (inst->hdcGraph)
|
||||
DeleteObject(inst->hdcGraph);
|
||||
DeleteDC(inst->hdcGraph);
|
||||
}
|
||||
|
||||
void
|
||||
|
||||
Reference in New Issue
Block a user