xvimagesink: fix pool leak
authorVineeth T M <vineeth.tm@samsung.com>
Mon, 18 May 2015 07:16:10 +0000 (16:16 +0900)
committerSebastian Dröge <sebastian@centricular.com>
Mon, 18 May 2015 07:40:37 +0000 (10:40 +0300)
During set caps when config fails, the referenced newpool
is not unref ed.

https://bugzilla.gnome.org/show_bug.cgi?id=749530

sys/xvimage/xvimagesink.c

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