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:
Uli Schlachter 2014-03-31 13:17:34 +02:00
parent 6dfe48690b
commit 14c4dcc969
1 changed files with 1 additions and 1 deletions

View File

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