After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 776076 - Fix caps memory leak from pad template creation
Fix caps memory leak from pad template creation
Status: RESOLVED FIXED
Product: GStreamer
Classification: Platform
Component: gst-plugins-bad
1.9.1
Other Linux
: Normal normal
: 1.11.1
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2016-12-14 07:52 UTC by Garima
Modified: 2016-12-14 08:22 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Fixed memory leak in usage of gst_caps_from_string API (2.00 KB, patch)
2016-12-14 07:52 UTC, Garima
committed Details | Review

Description Garima 2016-12-14 07:52:38 UTC
Created attachment 341933 [details] [review]
Fixed memory leak in usage of gst_caps_from_string API

Fixed memory leak in usage of gst_caps_from_string() API.
gst_caps_from_string() returns a newly allocated GstCaps which need to be freed after the usage.

Applied Fix:
Added gst_caps_unref() to free the allocated memory.
Comment 1 Sebastian Dröge (slomo) 2016-12-14 08:21:57 UTC
commit 9be02ccb2acf0271347dca3e693b13cf9d02c50f
Author: Garima Gaur <garima.g@samsung.com>
Date:   Wed Dec 14 13:10:18 2016 +0530

    sys: Fix caps memory leak from pad template creation
    
    https://bugzilla.gnome.org/show_bug.cgi?id=776076