Memory leak fixes
Memory leak fixes

Original commit message from CVS:
Memory leak fixes
Allow level to take mono or stereo audio

GStreamer/gst-plugins-good,pexip/gst-plugins-good,GrokImageCompression/gst-plugins-good,GStreamer/gst-plugins-good,StreamUtils/gst-plugins-good,pexip/gst-plugins-good,pexip/gst-plugins-good,GrokImageCompression/gst-plugins-good,GStreamer/gst-plugins-good,StreamUtils/gst-plugins-good,GrokImageCompression/gst-plugins-good,pexip/gst-plugins-good,GrokImageCompression/gst-plugins-good,StreamUtils/gst-plugins-good,pexip/gst-plugins-good,GStreamer/gst-plugins-good,StreamUtils/gst-plugins-good