GNOME Bugzilla – Bug 775224
subtitleoverlay: Caps memory leak when failing to get sinkpad from subtitle renderer
Last modified: 2016-11-28 11:57:57 UTC
Created attachment 340895 [details] [review] 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);
Comment on attachment 340895 [details] [review] Fixed memory leak Please mark your patches as "patch" when attaching them
And please also write more descriptive commit messages :) commit b2b8e775664fa35130e4617fd7cceb846939550b Author: Garima Gaur <garima.g@samsung.com> Date: Mon Nov 28 17:12:26 2016 +0530 subtitleoverlay: Fix caps memory leak when failing to get sinkpad from subtitle renderer https://bugzilla.gnome.org/show_bug.cgi?id=775224