basesrc: do not leak buffer pool in error case
authorIlya Konstantinov <ilya.konstantinov@gmail.com>
Sat, 4 Apr 2015 01:14:50 +0000 (04:14 +0300)
committerTim-Philipp Müller <tim@centricular.com>
Sat, 4 Apr 2015 10:14:12 +0000 (11:14 +0100)
https://bugzilla.gnome.org/show_bug.cgi?id=747321

libs/gst/base/gstbasesrc.c

index b1f9c29..b0112e6 100644 (file)
@@ -3115,6 +3115,7 @@ config_failed:
   GST_ELEMENT_ERROR (basesrc, RESOURCE, SETTINGS,
       ("Failed to configure the buffer pool"),
       ("Configuration is most likely invalid, please report this issue."));
+  gst_object_unref (pool);
   return FALSE;
 }