summaryrefslogtreecommitdiff
path: root/libnautilus-private/nautilus-module.c
diff options
context:
space:
mode:
authorAlexander Larsson <alexl@redhat.com>2007-09-11 15:13:00 +0000
committerAlexander Larsson <alexl@src.gnome.org>2007-09-11 15:13:00 +0000
commit89ad38184114a8263bd7c94a29949f02fa00666c (patch)
tree5263e694c1e941ad87f8425dd603979d70ad359e /libnautilus-private/nautilus-module.c
parent33a66137118b402b0ba2d2ba5e44234a3708b4c8 (diff)
downloadnautilus-89ad38184114a8263bd7c94a29949f02fa00666c.tar.gz
Revert. We're in hard code freeze.
2007-09-11 Alexander Larsson <alexl@redhat.com> * libnautilus-private/nautilus-module.c: Revert. We're in hard code freeze. svn path=/trunk/; revision=13140
Diffstat (limited to 'libnautilus-private/nautilus-module.c')
-rw-r--r--libnautilus-private/nautilus-module.c21
1 files changed, 4 insertions, 17 deletions
diff --git a/libnautilus-private/nautilus-module.c b/libnautilus-private/nautilus-module.c
index 33b39bb71..6a0dbd674 100644
--- a/libnautilus-private/nautilus-module.c
+++ b/libnautilus-private/nautilus-module.c
@@ -209,19 +209,6 @@ load_module_dir (const char *dirname)
}
}
-static void
-free_module_objects (void)
-{
- GList *l, *next;
-
- for (l = module_objects; l != NULL; l = next) {
- next = l->next;
- g_object_unref (l->data);
- }
-
- g_list_free (module_objects);
-}
-
void
nautilus_module_init (void)
{
@@ -232,7 +219,8 @@ nautilus_module_init (void)
load_module_dir (NAUTILUS_EXTENSIONDIR);
- eel_debug_call_at_shutdown (free_module_objects);
+ eel_debug_call_at_shutdown_with_data ((GFreeFunc)nautilus_module_extension_list_free,
+ module_objects);
}
}
@@ -256,10 +244,9 @@ nautilus_module_get_extensions_for_type (GType type)
void
nautilus_module_extension_list_free (GList *extensions)
{
- GList *l, *next;
+ GList *l;
- for (l = extensions; l != NULL; l = next) {
- next = l->next;
+ for (l = extensions; l != NULL; l = l->next) {
g_object_unref (l->data);
}
g_list_free (extensions);