Original commit message from CVS:
* gst/gstplugin.c: (gst_plugin_load_file):
Call g_module_close when we don't load the module
* gst/registries/gstlibxmlregistry.c:
(gst_xml_registry_get_property):
Port leak fix from 0.8
+2005-09-07 Jan Schmidt <thaytan@mad.scientist.com>
+
+ * gst/gstplugin.c: (gst_plugin_load_file):
+ Call g_module_close when we don't load the module
+
+ * gst/registries/gstlibxmlregistry.c:
+ (gst_xml_registry_get_property):
+ Port leak fix from 0.8
+
2005-09-07 Stefan Kost <ensonic@users.sf.net>
* docs/gst/gstreamer-docs.sgml:
module = g_module_open (filename, G_MODULE_BIND_LAZY | G_MODULE_BIND_LOCAL);
- /* handle module == NULL case */
- if (!gst_plugin_check_module (module, filename, error, &ptr))
+ /* gst_plugin_check_module handles module == NULL case */
+ if (!gst_plugin_check_module (module, filename, error, &ptr)) {
+ if (module != NULL)
+ g_module_close (module);
return NULL;
+ }
desc = (GstPluginDesc *) ptr;
switch (prop_id) {
case PROP_LOCATION:
- g_value_set_string (value, g_strdup (registry->location));
+ g_value_set_string (value, registry->location);
break;
default:
G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec);