xvimagesink: fix pool leak

During set caps when config fails, the referenced newpool
is not unref ed.

https://bugzilla.gnome.org/show_bug.cgi?id=749530
This commit is contained in:
Vineeth T M 2015-05-18 16:16:10 +09:00 committed by Sebastian Dröge
parent 1b755eb272
commit b1bc2af766

View file

@ -828,6 +828,7 @@ no_display_size:
config_failed: config_failed:
{ {
GST_ERROR_OBJECT (xvimagesink, "failed to set config."); GST_ERROR_OBJECT (xvimagesink, "failed to set config.");
gst_object_unref (newpool);
g_mutex_unlock (&xvimagesink->flow_lock); g_mutex_unlock (&xvimagesink->flow_lock);
return FALSE; return FALSE;
} }