Commit fd0226a3 authored by Benjamin Berg's avatar Benjamin Berg
Browse files

wfd-params: Fix EDID byte array freeing

GByteArray needs to be freed using the g_byte_array_unref method which
also frees the segment when used in g_clear_pointer.
parent 7a06f9a6
......@@ -256,7 +256,7 @@ wfd_params_from_sink (WfdParams *self, const guint8 *body, gsize body_size)
guint length;
g_auto(GStrv) split_value = NULL;
g_clear_pointer (&self->edid, g_byte_array_free);
g_clear_pointer (&self->edid, g_byte_array_unref);
if (g_str_equal (value, "none"))
continue;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment