mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 12:11:13 +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
6edf8dbaa6
commit
7ecf6b0d6c
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