projects
/
platform
/
upstream
/
gstreamer.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
162fc1f
)
harness: fix pad template leak
author
Tim-Philipp Müller
<tim@centricular.com>
Thu, 16 Jul 2015 16:50:06 +0000
(17:50 +0100)
committer
Tim-Philipp Müller
<tim@centricular.com>
Thu, 16 Jul 2015 16:50:06 +0000
(17:50 +0100)
libs/gst/check/gstharness.c
patch
|
blob
|
history
diff --git
a/libs/gst/check/gstharness.c
b/libs/gst/check/gstharness.c
index
f61163f
..
438a529
100644
(file)
--- a/
libs/gst/check/gstharness.c
+++ b/
libs/gst/check/gstharness.c
@@
-567,12
+567,16
@@
static gboolean
gst_pad_is_request_pad (GstPad * pad)
{
GstPadTemplate *temp;
+ gboolean is_request;
+
if (pad == NULL)
return FALSE;
temp = gst_pad_get_pad_template (pad);
if (temp == NULL)
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;
}
/**