[Bug 794353] New: rtponviftimestamp: memory leak on finalize

GStreamer (GNOME Bugzilla) bugzilla at gnome.org
Thu Mar 15 10:58:41 UTC 2018


https://bugzilla.gnome.org/show_bug.cgi?id=794353

            Bug ID: 794353
           Summary: rtponviftimestamp: memory leak on finalize
    Classification: Platform
           Product: GStreamer
           Version: git master
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: Normal
         Component: gst-plugins-bad
          Assignee: gstreamer-bugs at lists.freedesktop.org
          Reporter: pavel.modilaynen at axis.com
        QA Contact: gstreamer-bugs at lists.freedesktop.org
     GNOME version: ---

There is missing buffer list destruction in gst_rtp_onvif_timestamp_finalize ()
which can be noticed with:

diff --git a/gst/onvif/gstrtponviftimestamp.c
b/gst/onvif/gstrtponviftimestamp.c
index a957483..674f57d 100644
--- a/gst/onvif/gstrtponviftimestamp.c
+++ b/gst/onvif/gstrtponviftimestamp.c
@@ -222,6 +222,9 @@ gst_rtp_onvif_timestamp_finalize (GObject * object)
   g_queue_free (self->event_queue);

   G_OBJECT_CLASS (gst_rtp_onvif_timestamp_parent_class)->finalize (object);
+
+  g_assert (self->buffer == NULL);
+  g_assert (self->list == NULL);
 }

Which leads to:
[ 8355.912930] test[13119]:
ERROR:../../../../../../../../gstreamer1.0-plugins-bad/gst/onvif/gstrtponviftimestamp.c:246:gst_rtp_onvif_timestamp_finalize:
assertion failed: (self->list == NULL)

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.


More information about the gstreamer-bugs mailing list