[gstreamer-bugs] [Bug 577690] New: rtpdtmfmux: missing pad unref

GStreamer (bugzilla.gnome.org) bugzilla-daemon at bugzilla.gnome.org
Thu Apr 2 01:59:35 PDT 2009

If you have any questions why you received this email, please see the text at
the end of this email. Replies to this email are NOT read, please see the text
at the end of this email. You can add comments to this bug at:

  GStreamer | gst-plugins-bad | Ver: git
           Summary: rtpdtmfmux: missing pad unref
           Product: GStreamer
           Version: git
          Platform: Other
        OS/Version: Linux
            Status: UNCONFIRMED
          Severity: normal
          Priority: Normal
         Component: gst-plugins-bad
        AssignedTo: gstreamer-bugs at lists.sourceforge.net
        ReportedBy: spglegle at yahoo.fr
         QAContact: gstreamer-bugs at lists.sourceforge.net
     GNOME version: Unspecified
   GNOME milestone: Unspecified

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);

See http://bugzilla.gnome.org/page.cgi?id=email.html for more info about why you received
this email, why you can't respond via email, how to stop receiving
emails (or reduce the number you receive), and how to contact someone
if you are having problems with the system.

You can add comments to this bug at http://bugzilla.gnome.org/show_bug.cgi?id=577690.

More information about the Gstreamer-bugs mailing list