projects
/
platform
/
upstream
/
gst-plugins-good.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c4c5de6
)
wavparse: don't leak pad-template
author
Stefan Kost
<ensonic@users.sf.net>
Tue, 7 Apr 2009 19:35:31 +0000
(22:35 +0300)
committer
Stefan Kost
<ensonic@users.sf.net>
Tue, 7 Apr 2009 19:36:39 +0000
(22:36 +0300)
gst_element_class_add_pad_template() does not take ownership.
gst/wavparse/gstwavparse.c
patch
|
blob
|
history
diff --git
a/gst/wavparse/gstwavparse.c
b/gst/wavparse/gstwavparse.c
index
c8e7c75
..
5daee4d
100644
(file)
--- a/
gst/wavparse/gstwavparse.c
+++ b/
gst/wavparse/gstwavparse.c
@@
-113,6
+113,7
@@
gst_wavparse_base_init (gpointer g_class)
src_template = gst_pad_template_new ("wavparse_src", GST_PAD_SRC,
GST_PAD_SOMETIMES, gst_riff_create_audio_template_caps ());
gst_element_class_add_pad_template (element_class, src_template);
+ gst_object_unref (src_template);
gst_element_class_set_details (element_class, &gst_wavparse_details);
}