GNOME Bugzilla – Bug 734533
amcvideoenc: Avoid leaking copy of caps object
Last modified: 2014-08-11 06:56:02 UTC
gst_pad_get_pad_template_caps() returns a reference which is unreferenced, so creating a copy using gst_caps_copy() results in a reference leak. The attached patch removes the uncessary calls to gst_caps_copy().
Created attachment 282989 [details] [review] Proposed patch.
commit c1d5aa3da560db98a28474916c12d137c706d70d Author: Sebastian Rasmussen <sebras@hotmail.com> Date: Sat Aug 9 13:17:17 2014 +0200 amcvideoenc: Avoid leaking copy of caps object gst_pad_get_pad_template_caps() returns a reference which is unreferenced, so creating a copy using gst_caps_copy() results in a reference leak. Also remove the incorrect comment to avoid confusion in the future. Fixes https://bugzilla.gnome.org/show_bug.cgi?id=734533