From 6da18bd898508cd82e7bb203bdf6e28b44456268 Mon Sep 17 00:00:00 2001 From: Jan Schmidt Date: Wed, 9 Mar 2005 14:54:54 +0000 Subject: [PATCH] gst/registries/gstlibxmlregistry.c: g_free allocated GstPlugins, since they're not GstObjects. Original commit message from CVS: * gst/registries/gstlibxmlregistry.c: (load_plugin), (load_paths): g_free allocated GstPlugins, since they're not GstObjects. --- ChangeLog | 4 ++++ gst/registries/gstlibxmlregistry.c | 5 ++++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 27b4765d12..e427f01d67 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2005-03-10 Jan Schmidt,,, + * gst/registries/gstlibxmlregistry.c: (load_plugin), (load_paths): + g_free allocated GstPlugins, since they're not GstObjects. + 2005-03-09 Jan Schmidt * docs/gst/gstreamer-sections.txt: diff --git a/gst/registries/gstlibxmlregistry.c b/gst/registries/gstlibxmlregistry.c index e5fba5d813..ef06ea2af5 100644 --- a/gst/registries/gstlibxmlregistry.c +++ b/gst/registries/gstlibxmlregistry.c @@ -844,7 +844,8 @@ load_plugin (xmlTextReaderPtr reader) } } } - gst_object_unref (GST_OBJECT (plugin)); + g_free (plugin); + return NULL; } @@ -873,6 +874,8 @@ load_paths (xmlTextReaderPtr reader, GstXMLRegistry * registry) } } } + + g_free (plugin); return NULL; }