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.
This commit is contained in:
David Schleef 2005-09-21 07:37:02 +00:00
parent 4b1cffa4cd
commit 95c71e3b0f
2 changed files with 6 additions and 0 deletions

View file

@ -1,3 +1,8 @@
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:

View file

@ -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;