mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-20 21:16:24 +00:00
gst-inspect: Fix memory leak in print_pad_templates_info
gst_static_caps_get function returned allocated memory. So, It should be free using gst_caps_unref. https://bugzilla.gnome.org/show_bug.cgi?id=784311
This commit is contained in:
parent
a405aedde8
commit
a8acba142f
1 changed files with 4 additions and 1 deletions
|
@ -572,8 +572,11 @@ print_pad_templates_info (GstElement * element, GstElementFactory * factory)
|
|||
n_print (" Availability: UNKNOWN!!!\n");
|
||||
|
||||
if (padtemplate->static_caps.string) {
|
||||
GstCaps *caps = gst_static_caps_get (&padtemplate->static_caps);
|
||||
|
||||
n_print (" Capabilities:\n");
|
||||
print_caps (gst_static_caps_get (&padtemplate->static_caps), " ");
|
||||
print_caps (caps, " ");
|
||||
gst_caps_unref (caps);
|
||||
}
|
||||
|
||||
n_print ("\n");
|
||||
|
|
Loading…
Reference in a new issue