validate: Plug a potential leak when retrieving peer pad
This commit is contained in:
parent
7be8ecd628
commit
8393a3d5ca
@ -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…
x
Reference in New Issue
Block a user