plugins/elements/gsttypefindelement.c: Now that we're not leaking factories, make sure we keep references to them whi...

Original commit message from CVS:
* plugins/elements/gsttypefindelement.c: (free_entry),
(gst_type_find_element_chain):
Now that we're not leaking factories, make sure we keep references
to them while we need them.
This commit is contained in:
Michael Smith 2005-12-12 12:32:04 +00:00
parent 72cf82552e
commit 3af7b196f9
2 changed files with 9 additions and 1 deletions

View file

@ -1,3 +1,10 @@
2005-12-12 Michael Smith <msmith@fluendo.com>
* plugins/elements/gsttypefindelement.c: (free_entry),
(gst_type_find_element_chain):
Now that we're not leaking factories, make sure we keep references
to them while we need them.
2005-12-12 Thomas Vander Stichele <thomas at apestaart dot org>
* tests/check/gst/struct_i386.h:

View file

@ -393,6 +393,7 @@ free_entry (TypeFindEntry * entry)
{
if (entry->caps)
gst_caps_unref (entry->caps);
gst_object_unref (entry->factory);
g_free (entry);
}
static void
@ -632,7 +633,7 @@ gst_type_find_element_chain (GstPad * pad, GstBuffer * buffer)
while (walk) {
entry = new_entry ();
entry->factory = GST_TYPE_FIND_FACTORY (walk->data);
entry->factory = gst_object_ref (GST_TYPE_FIND_FACTORY (walk->data));
entry->self = typefind;
entry->probability = 0;
typefind->possibilities =