From 95c71e3b0f72fd10d637e65829eeb82e506b34cd Mon Sep 17 00:00:00 2001 From: David Schleef Date: Wed, 21 Sep 2005 07:37:02 +0000 Subject: [PATCH] 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. --- ChangeLog | 5 +++++ gst/gstelementfactory.c | 1 + 2 files changed, 6 insertions(+) diff --git a/ChangeLog b/ChangeLog index 56416a8..09cb0fe 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 c545b62..6b66474 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; -- 2.7.4