Commit 95c71e3b authored by David Schleef's avatar David Schleef

gst/gstelementfactory.c: Drink a little beer, fix a little leak.

Original commit message from CVS:
* gst/gstelementfactory.c: (gst_element_factory_make): Drink a
little beer, fix a little leak.
parent 4b1cffa4
2005-09-21 David Schleef <ds@schleef.org>
* gst/gstelementfactory.c: (gst_element_factory_make): Drink a
little beer, fix a little leak.
2005-09-21 Stefan Kost <ensonic@users.sf.net>
* docs/gst/gstreamer-docs.sgml:
......
......@@ -439,6 +439,7 @@ gst_element_factory_make (const gchar * factoryname, const gchar * name)
}
GST_LOG ("gstelementfactory: found factory %p", factory);
element = gst_element_factory_create (factory, name);
gst_object_unref (factory);
if (element == NULL) {
GST_INFO_OBJECT (factory, "couldn't create instance!");
return NULL;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment