gst/elements/gsttypefindelement.c (gst_type_find_element_activate): Unref found_caps after we used it.

Original commit message from CVS:
* gst/elements/gsttypefindelement.c (gst_type_find_element_activate):
Unref found_caps after we used it.
This commit is contained in:
Johan Dahlin 2005-11-02 14:28:02 +00:00
parent 327501d2bd
commit c49861f331
3 changed files with 7 additions and 0 deletions

View file

@ -1,3 +1,8 @@
2005-11-02 Johan Dahlin <johan@gnome.org>
* gst/elements/gsttypefindelement.c (gst_type_find_element_activate):
Unref found_caps after we used it.
2005-11-02 Tim-Philipp Müller <tim at centricular dot net>
* gst/base/gstcollectpads.c: (gst_collectpads_peek):

View file

@ -824,6 +824,7 @@ gst_type_find_element_activate (GstPad * pad)
/* 6 */
g_signal_emit (typefind, gst_type_find_element_signals[HAVE_TYPE],
0, 100, found_caps);
gst_caps_unref (found_caps);
typefind->mode = MODE_NORMAL;
/* FIXME see if I can unref the caps here */

View file

@ -824,6 +824,7 @@ gst_type_find_element_activate (GstPad * pad)
/* 6 */
g_signal_emit (typefind, gst_type_find_element_signals[HAVE_TYPE],
0, 100, found_caps);
gst_caps_unref (found_caps);
typefind->mode = MODE_NORMAL;
/* FIXME see if I can unref the caps here */