mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-03-28 20:05:38 +00:00
smart-video-mixer: fix memory leak on error path
Coverity 1212166
This commit is contained in:
parent
edd95cf57d
commit
31257a260c
1 changed files with 1 additions and 0 deletions
|
@ -108,6 +108,7 @@ _request_new_pad (GstElement * element, GstPadTemplate * templ,
|
|||
|
||||
if (infos->mixer_pad == NULL) {
|
||||
GST_WARNING_OBJECT (element, "Could not get any pad from GstMixer");
|
||||
g_slice_free (PadInfos, infos);
|
||||
|
||||
return NULL;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue