xvimagesink: fix error leak when context creation fails
When context creation fails, error is getting leaked. https://bugzilla.gnome.org/show_bug.cgi?id=754973
This commit is contained in:
parent
35cb3b0c57
commit
dab39bf42b
@ -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;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user