close #333784 unref the result of gst_pad_get_parent() by: Christophe Fergeau.
[platform/upstream/gstreamer.git] / gst / law / mulaw-encode.c
index defb7dd..f9e1ecc 100644 (file)
@@ -126,6 +126,7 @@ mulawenc_setcaps (GstPad * pad, GstCaps * caps)
 
   gst_pad_set_caps (otherpad, base_caps);
 
+  gst_object_unref (mulawenc);
   gst_caps_unref (base_caps);
 
   return TRUE;