[grilo] core: Make modules resident



commit b653bc9d15f83d5eba0171128dc72553a1ea6d74
Author: Juan A. Suarez Romero <jasuarez igalia com>
Date:   Tue Apr 12 16:37:37 2011 +0000

    core: Make modules resident
    
    Do not really unload the modules from memory when unloading the plugins.
    
    This will prevent problems with glib's types if plugins are reloaded again.
    
    Signed-off-by: Juan A. Suarez Romero <jasuarez igalia com>

 src/grl-plugin-registry.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/src/grl-plugin-registry.c b/src/grl-plugin-registry.c
index 1049133..27212bc 100644
--- a/src/grl-plugin-registry.c
+++ b/src/grl-plugin-registry.c
@@ -563,6 +563,9 @@ grl_plugin_registry_load (GrlPluginRegistry *registry,
                          g_path_get_basename (plugin_info->filename));
   }
 
+  /* Make plugin resident */
+  g_module_make_resident (module);
+
   plugin->module = module;
 
   GRL_DEBUG ("Loaded plugin '%s' from '%s'", plugin->plugin_id, path);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]