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:
Vineeth TM 2015-09-14 09:36:20 +09:00 committed by Tim-Philipp Müller
parent 35cb3b0c57
commit dab39bf42b

View file

@ -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;
}
}