Commit dab39bf4 authored by Vineeth TM's avatar Vineeth TM Committed by Tim-Philipp Müller
Browse files

xvimagesink: fix error leak when context creation fails

When context creation fails, error is getting leaked.
parent 35cb3b0c
......@@ -1756,7 +1756,8 @@ no_context:
gst_element_message_full (GST_ELEMENT (xvimagesink), GST_MESSAGE_ERROR,
error->domain, error->code, g_strdup ("Could not initialise Xv output"),
error->message, __FILE__, GST_FUNCTION, __LINE__);
g_strdup (error->message), __FILE__, GST_FUNCTION, __LINE__);
g_clear_error (&error);
return FALSE;
Markdown is supported
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