waylandsink: do not leak buffer pool in error case
authorOgnyan Tonchev <ognyan@axis.com>
Tue, 16 Sep 2014 10:06:35 +0000 (12:06 +0200)
committerSebastian Dröge <sebastian@centricular.com>
Wed, 17 Sep 2014 06:43:58 +0000 (09:43 +0300)
https://bugzilla.gnome.org/show_bug.cgi?id=736735

ext/wayland/gstwaylandsink.c

index 365df7c..d029d83 100644 (file)
@@ -530,6 +530,7 @@ pool_failed:
 config_failed:
   {
     GST_DEBUG_OBJECT (bsink, "failed setting config");
+    gst_object_unref (newpool);
     return FALSE;
   }
 }