diff --git a/ChangeLog b/ChangeLog index 56416a83d6..09cb0fed13 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2005-09-21 David Schleef + + * gst/gstelementfactory.c: (gst_element_factory_make): Drink a + little beer, fix a little leak. + 2005-09-21 Stefan Kost * docs/gst/gstreamer-docs.sgml: diff --git a/gst/gstelementfactory.c b/gst/gstelementfactory.c index c545b62f55..6b6647490e 100644 --- a/gst/gstelementfactory.c +++ b/gst/gstelementfactory.c @@ -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;