mirror of
https://github.com/reactos/reactos.git
synced 2025-06-06 09:50:43 +00:00
[TASKMGR] GraphCtrl: Use DeleteDC instead of DeleteObject to delete inst->hdcGraph
This reduces handle leak. CORE-18014
This commit is contained in:
parent
2441e86963
commit
dc14a9f6e0
1 changed files with 1 additions and 1 deletions
|
@ -132,7 +132,7 @@ GraphCtrl_Dispose(PTM_GRAPH_CONTROL inst)
|
||||||
DeleteObject(inst->hbmGraph);
|
DeleteObject(inst->hbmGraph);
|
||||||
|
|
||||||
if (inst->hdcGraph)
|
if (inst->hdcGraph)
|
||||||
DeleteObject(inst->hdcGraph);
|
DeleteDC(inst->hdcGraph);
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
|
|
Loading…
Reference in a new issue