diff options
author | Christian Göttsche <cgzones@googlemail.com> | 2020-09-11 20:36:02 +0200 |
---|---|---|
committer | cgzones <cgzones@googlemail.com> | 2020-09-17 22:04:11 +0200 |
commit | c7568bc0540d7d33233fc55fa9d5b11cffd56e36 (patch) | |
tree | 5bfe3ed67f8fd8fec41d26c8c05f39c82230d28f /Action.c | |
parent | 71c068ad286f1493fc1c3cc106e14d5ed104eb2a (diff) |
Fix memory leak in actionSetAffinity()
Call correct delete method for AffinityPanel
Diffstat (limited to 'Action.c')
-rw-r--r-- | Action.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -298,7 +298,7 @@ static Htop_Reaction actionSetAffinity(State* st) { if (!ok) beep(); Affinity_delete(affinity2); } - Panel_delete((Object*)affinityPanel); + Object_delete(affinityPanel); #endif return HTOP_REFRESH | HTOP_REDRAW_BAR | HTOP_UPDATE_PANELHDR; } |