Do no free input context if it is NULL when popup create fails.

This commit is contained in:
nicm
2026-08-28 08:02:16 +00:00
committed by Nicholas Marriott
parent 1c98c3a2a3
commit 181e818b93

View File

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