From c7568bc0540d7d33233fc55fa9d5b11cffd56e36 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christian=20G=C3=B6ttsche?= Date: Fri, 11 Sep 2020 20:36:02 +0200 Subject: [PATCH] Fix memory leak in actionSetAffinity() Call correct delete method for AffinityPanel --- Action.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Action.c b/Action.c index 90d6bfe1..5de0804d 100644 --- a/Action.c +++ b/Action.c @@ -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; }