Fix memory leak in actionSetAffinity()

Call correct delete method for AffinityPanel
This commit is contained in:
Christian Göttsche 2020-09-11 20:36:02 +02:00 committed by cgzones
parent 71c068ad28
commit c7568bc054
1 changed files with 1 additions and 1 deletions

View File

@ -298,7 +298,7 @@ static Htop_Reaction actionSetAffinity(State* st) {
if (!ok) beep(); if (!ok) beep();
Affinity_delete(affinity2); Affinity_delete(affinity2);
} }
Panel_delete((Object*)affinityPanel); Object_delete(affinityPanel);
#endif #endif
return HTOP_REFRESH | HTOP_REDRAW_BAR | HTOP_UPDATE_PANELHDR; return HTOP_REFRESH | HTOP_REDRAW_BAR | HTOP_UPDATE_PANELHDR;
} }