mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-21 05:26:23 +00:00
validate: Plug a potential leak when retrieving peer pad
This commit is contained in:
parent
7be8ecd628
commit
8393a3d5ca
1 changed files with 1 additions and 1 deletions
|
@ -195,10 +195,10 @@ _get_peer_pad (GstPad * pad)
|
|||
next_pad = gst_pad_get_peer (peer);
|
||||
}
|
||||
|
||||
gst_object_unref (peer);
|
||||
if (!next_pad)
|
||||
return NULL;
|
||||
|
||||
gst_object_unref (peer);
|
||||
peer = next_pad;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue