mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-24 16:18:16 +00:00
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:
parent
4b1cffa4cd
commit
95c71e3b0f
2 changed files with 6 additions and 0 deletions
|
@ -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>
|
2005-09-21 Stefan Kost <ensonic@users.sf.net>
|
||||||
|
|
||||||
* docs/gst/gstreamer-docs.sgml:
|
* 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);
|
GST_LOG ("gstelementfactory: found factory %p", factory);
|
||||||
element = gst_element_factory_create (factory, name);
|
element = gst_element_factory_create (factory, name);
|
||||||
|
gst_object_unref (factory);
|
||||||
if (element == NULL) {
|
if (element == NULL) {
|
||||||
GST_INFO_OBJECT (factory, "couldn't create instance!");
|
GST_INFO_OBJECT (factory, "couldn't create instance!");
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|
Loading…
Reference in a new issue