mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-10 17:35:59 +00:00
harness: fix pad template leak
This commit is contained in:
parent
162fc1f7d6
commit
36267ca0e2
1 changed files with 5 additions and 1 deletions
|
@ -567,12 +567,16 @@ static gboolean
|
||||||
gst_pad_is_request_pad (GstPad * pad)
|
gst_pad_is_request_pad (GstPad * pad)
|
||||||
{
|
{
|
||||||
GstPadTemplate *temp;
|
GstPadTemplate *temp;
|
||||||
|
gboolean is_request;
|
||||||
|
|
||||||
if (pad == NULL)
|
if (pad == NULL)
|
||||||
return FALSE;
|
return FALSE;
|
||||||
temp = gst_pad_get_pad_template (pad);
|
temp = gst_pad_get_pad_template (pad);
|
||||||
if (temp == NULL)
|
if (temp == NULL)
|
||||||
return FALSE;
|
return FALSE;
|
||||||
return GST_PAD_TEMPLATE_PRESENCE (temp) == GST_PAD_REQUEST;
|
is_request = GST_PAD_TEMPLATE_PRESENCE (temp) == GST_PAD_REQUEST;
|
||||||
|
gst_object_unref (temp);
|
||||||
|
return is_request;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in a new issue