mirror of https://github.com/xzeldon/htop.git
Fix memory leak in actionSetAffinity()
Call correct delete method for AffinityPanel
This commit is contained in:
parent
71c068ad28
commit
c7568bc054
2
Action.c
2
Action.c
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue