Fix leak when refs are sent to a frame during destruction on Haiku
* src/haikuterm.c (haiku_read_socket): Free b->ref if it was sent from a frame that was destroyed.
This commit is contained in:
parent
a970a2a489
commit
e0268fd7d5
1 changed files with 4 additions and 1 deletions
|
@ -3235,7 +3235,10 @@ haiku_read_socket (struct terminal *terminal, struct input_event *hold_quit)
|
|||
struct frame *f = haiku_window_to_frame (b->window);
|
||||
|
||||
if (!f)
|
||||
continue;
|
||||
{
|
||||
free (b->ref);
|
||||
continue;
|
||||
}
|
||||
|
||||
inev.kind = DRAG_N_DROP_EVENT;
|
||||
inev.arg = build_string_from_utf8 (b->ref);
|
||||
|
|
Loading…
Add table
Reference in a new issue