screen: Fix output deletion
The screen_output_t* that is passed to screen_output_wipe() points into the middle of the output array table and is a pointer that we never allocated. Instead, what we want to free here is the name of the output. Thanks to luzie for reporting this. Signed-off-by: Uli Schlachter <psychon@znc.in>
This commit is contained in:
parent
6dfe48690b
commit
14c4dcc969
|
@ -41,7 +41,7 @@ struct screen_output_t
|
|||
static void
|
||||
screen_output_wipe(screen_output_t *output)
|
||||
{
|
||||
p_delete(&output);
|
||||
p_delete(&output->name);
|
||||
}
|
||||
|
||||
ARRAY_FUNCS(screen_output_t, screen_output, screen_output_wipe)
|
||||
|
|
Loading…
Reference in New Issue