mirror of
https://github.com/tmux/tmux.git
synced 2026-10-13 14:24:28 +00:00
Do no free input context if it is NULL when popup create fails.
This commit is contained in:
3
popup.c
3
popup.c
@@ -1,4 +1,4 @@
|
|||||||
/* $OpenBSD: popup.c,v 1.76 2026/07/14 19:07:03 nicm Exp $ */
|
/* $OpenBSD: popup.c,v 1.77 2026/08/28 08:02:16 nicm Exp $ */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 2020 Nicholas Marriott <nicholas.marriott@gmail.com>
|
* Copyright (c) 2020 Nicholas Marriott <nicholas.marriott@gmail.com>
|
||||||
@@ -80,6 +80,7 @@ popup_free(struct popup_data *pd)
|
|||||||
|
|
||||||
if (pd->job != NULL)
|
if (pd->job != NULL)
|
||||||
job_free(pd->job);
|
job_free(pd->job);
|
||||||
|
if (pd->ictx != NULL)
|
||||||
input_free(pd->ictx);
|
input_free(pd->ictx);
|
||||||
|
|
||||||
free(pd->r.ranges);
|
free(pd->r.ranges);
|
||||||
|
|||||||
Reference in New Issue
Block a user