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

View File

@ -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;
}