GNOME Bugzilla – Bug 776700
Fixed memory leak in usage of gst_pad_template_new() API
Last modified: 2017-01-02 12:43:35 UTC
Created attachment 342706 [details] [review] Fixed memory leak in usage of gst_pad_template_new() API Fixed memory leak in usage of gst_pad_template_new() API. The last argument to gst_pad_template_new() is not freed. I am not sure is this required to free the caps. But I have attached a patch for the fix.
gst_pad_template_new() does not take ownership of the caps argument, so the caps need to be freed. Thanks for the patch. I have fixed some indentation issues with it with gst-indent. commit 14dc964f0e4526a842a245fdb86b98985bb12e3f Author: Garima Gaur <garima.g@samsung.com> Date: Mon Jan 2 09:06:09 2017 +0530 Fix some caps leaks when creating pad templates https://bugzilla.gnome.org/show_bug.cgi?id=776700