Permalink
Browse files

Unref pad template after is used.

This patch fix a small memory leak since gst_element_class_add_pad_template()
increase the ref count of the pad template.

Signed-off-by: Víctor Manuel Jáquez Leal <vjaquez@igalia.com>
Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
  • Loading branch information...
ceyusa authored and felipec committed Dec 16, 2011
1 parent 41c0ef0 commit 677473bcc5b67ad7377e384f99357ee2f205bb28
Showing with 2 additions and 0 deletions.
  1. +2 −0 omapfb.c
View
@@ -443,6 +443,8 @@ base_init(void *g_class)
generate_sink_template());
gst_element_class_add_pad_template(element_class, template);
+
+ gst_object_unref(template);
}
GType

0 comments on commit 677473b

Please sign in to comment.