[Bug 775224] New: Fixed memory leak

GStreamer (GNOME Bugzilla) bugzilla at gnome.org
Mon Nov 28 11:53:15 UTC 2016


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

            Bug ID: 775224
           Summary: Fixed memory leak
    Classification: Platform
           Product: GStreamer
           Version: 1.9.1
                OS: Windows
            Status: NEW
          Severity: normal
          Priority: Normal
         Component: gst-plugins-base
          Assignee: gstreamer-bugs at lists.freedesktop.org
          Reporter: garima.g at samsung.com
        QA Contact: gstreamer-bugs at lists.freedesktop.org
     GNOME version: ---

Created attachment 340895
  --> https://bugzilla.gnome.org/attachment.cgi?id=340895&action=edit
Fixed memory leak

'video_caps' should be freed before function returns.

Check attached patch for below fix:
     sink = _get_video_pad (renderer);
     if (G_UNLIKELY (!sink)) {
       GST_WARNING_OBJECT (self, "Can't get video sink from renderer");
+      if (video_caps)
+        gst_caps_unref (video_caps);
       return FALSE;
     }
     allowed_caps = gst_pad_query_caps (sink, 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