[Bug 775310] New: playbin2: Fix caps memory leak in usage of gst_static_caps_get() API
GStreamer (GNOME Bugzilla)
bugzilla at gnome.org
Tue Nov 29 11:20:33 UTC 2016
https://bugzilla.gnome.org/show_bug.cgi?id=775310
Bug ID: 775310
Summary: playbin2: Fix caps memory leak in usage of
gst_static_caps_get() API
Classification: Platform
Product: GStreamer
Version: 1.9.1
OS: Linux
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 340968
--> https://bugzilla.gnome.org/attachment.cgi?id=340968&action=edit
patch is attached for the caps memory leak fix in gstplaybin2.c
In gst/playback/gstplaybin2.c
Function: autoplug_select_cb()
memory is allocated to local variable 'raw_caps' at line:4707 and line:4708 in
an 'if block'. Block ends at line:4737 but memory is not freed.
Applied Fix: Before the if block ends memory is released by adding:
gst_caps_unref (raw_caps);
Patch is attached for the same fix.
--
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