GNOME Bugzilla – Bug 577690
rtpdtmfmux: missing pad unref
Last modified: 2009-04-15 17:23:22 UTC
Unref pad on finalize if necessary. diff --git a/gst/rtpmux/gstrtpdtmfmux.c b/gst/rtpmux/gstrtpdtmfmux.c index f98d7a0..0ac8335 100644 --- a/gst/rtpmux/gstrtpdtmfmux.c +++ b/gst/rtpmux/gstrtpdtmfmux.c @@ -163,6 +163,12 @@ gst_rtp_dtmf_mux_finalize (GObject * object) mux = GST_RTP_DTMF_MUX (object); + if ( mux->special_pad != NULL ) + { + gst_object_unref (mux->special_pad); + mux->special_pad = NULL; + } + G_OBJECT_CLASS (parent_class)->finalize (object); }
commit 65cb85316bec86391fd235adf15716f44230e646 Author: Laurent Glayal <spglegle@yahoo.fr> Date: Wed Apr 15 13:09:27 2009 -0400 rtpdtmfmux: Release special on pad dispose Fixes #577690