mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-29 05:01:23 +00:00
glupload: fix memory leak
GstCapsFeatures need to be freed with gst_caps_features_free() after use. CID #1312136, CID #1312136
This commit is contained in:
parent
f59948c5c0
commit
1eeeadb24e
1 changed files with 2 additions and 0 deletions
|
@ -185,6 +185,8 @@ _gl_memory_upload_accept (gpointer impl, GstBuffer * buffer, GstCaps * in_caps,
|
|||
ret = FALSE;
|
||||
|
||||
gst_caps_features_free (gl_features);
|
||||
gst_caps_features_free (gl_overlay_features);
|
||||
gst_caps_features_free (system_memory_overlay_features);
|
||||
|
||||
if (!ret)
|
||||
return FALSE;
|
||||
|
|
Loading…
Reference in a new issue