mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-04-26 06:54:49 +00:00
gst/gstplugin.c: Call g_module_close when we don't load the module
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
This commit is contained in:
parent
af64fe644c
commit
d5da128644
3 changed files with 15 additions and 3 deletions
|
@ -1,3 +1,12 @@
|
||||||
|
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>
|
2005-09-07 Stefan Kost <ensonic@users.sf.net>
|
||||||
|
|
||||||
* docs/gst/gstreamer-docs.sgml:
|
* docs/gst/gstreamer-docs.sgml:
|
||||||
|
|
|
@ -414,9 +414,12 @@ gst_plugin_load_file (const gchar * filename, GError ** error)
|
||||||
|
|
||||||
module = g_module_open (filename, G_MODULE_BIND_LAZY | G_MODULE_BIND_LOCAL);
|
module = g_module_open (filename, G_MODULE_BIND_LAZY | G_MODULE_BIND_LOCAL);
|
||||||
|
|
||||||
/* handle module == NULL case */
|
/* gst_plugin_check_module handles module == NULL case */
|
||||||
if (!gst_plugin_check_module (module, filename, error, &ptr))
|
if (!gst_plugin_check_module (module, filename, error, &ptr)) {
|
||||||
|
if (module != NULL)
|
||||||
|
g_module_close (module);
|
||||||
return NULL;
|
return NULL;
|
||||||
|
}
|
||||||
|
|
||||||
desc = (GstPluginDesc *) ptr;
|
desc = (GstPluginDesc *) ptr;
|
||||||
|
|
||||||
|
|
|
@ -241,7 +241,7 @@ gst_xml_registry_get_property (GObject * object, guint prop_id,
|
||||||
|
|
||||||
switch (prop_id) {
|
switch (prop_id) {
|
||||||
case PROP_LOCATION:
|
case PROP_LOCATION:
|
||||||
g_value_set_string (value, g_strdup (registry->location));
|
g_value_set_string (value, registry->location);
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec);
|
G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec);
|
||||||
|
|
Loading…
Reference in a new issue