GNOME Bugzilla – Bug 775310
playbin: Fix caps memory leak in usage of gst_static_caps_get() API
Last modified: 2016-11-29 11:44:28 UTC
Created attachment 340968 [details] [review] 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.
commit 6c5381eda69129a64f10161d337ebd73bc08dc63 Author: Garima Gaur <garima.g@samsung.com> Date: Tue Nov 29 16:37:50 2016 +0530 playbin: Fix caps memory leak in usage of gst_static_caps_get() API https://bugzilla.gnome.org/show_bug.cgi?id=775310