Skip to content

Commit

Permalink
xvimagesink: fix error leak when context creation fails
Browse files Browse the repository at this point in the history
When context creation fails, error is getting leaked.

https://bugzilla.gnome.org/show_bug.cgi?id=754973
  • Loading branch information
Vineeth TM authored and tp-m committed Sep 14, 2015
1 parent 35cb3b0 commit dab39bf
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion sys/xvimage/xvimagesink.c
Expand Up @@ -1756,7 +1756,8 @@ gst_xv_image_sink_open (GstXvImageSink * xvimagesink)
{
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;
}
}
Expand Down

0 comments on commit dab39bf

Please sign in to comment.