From 181e818b9378692d42ab3e2b4153a037942c2195 Mon Sep 17 00:00:00 2001 From: nicm Date: Fri, 28 Aug 2026 08:02:16 +0000 Subject: [PATCH] Do no free input context if it is NULL when popup create fails. --- popup.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/popup.c b/popup.c index 908b2a726..782fa2e03 100644 --- a/popup.c +++ b/popup.c @@ -110,7 +110,8 @@ popup_free(struct popup_data *pd) if (pd->job != NULL) job_free(pd->job); - input_free(pd->ictx); + if (pd->ictx != NULL) + input_free(pd->ictx); free(pd->or[0].ranges); free(pd->or[1].ranges);