[nautilus-sendto] Never unload modules once init() has been done



commit c76410275933ff05701cda346944e30498d27b2e
Author: Bastien Nocera <hadess hadess net>
Date:   Wed Jun 9 18:12:42 2010 +0100

    Never unload modules once init() has been done
    
    Because they might register new types, and when they're unloaded,
    kaboom!

 src/nautilus-sendto-command.c |    2 --
 1 files changed, 0 insertions(+), 2 deletions(-)
---
diff --git a/src/nautilus-sendto-command.c b/src/nautilus-sendto-command.c
index dd21620..92b96bb 100644
--- a/src/nautilus-sendto-command.c
+++ b/src/nautilus-sendto-command.c
@@ -665,8 +665,6 @@ nautilus_sendto_plugin_dir_process (const char *plugindir)
 				if (p->info->init(p)) {
 					plugin_list = g_list_append (plugin_list, p);
 				} else {
-					if (!p->info->never_unload)
-						g_module_close (p->module);
 					g_free (p);
 				}
 			}



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