diff options
author | Alexander Larsson <alexl@redhat.com> | 2003-09-18 08:16:31 +0000 |
---|---|---|
committer | Alexander Larsson <alexl@src.gnome.org> | 2003-09-18 08:16:31 +0000 |
commit | 554ba2f25eacecb86455acb7bd17106f6a789fe6 (patch) | |
tree | f0b0cb9c624243d66c3b1a207700dcb7d4ecd0b8 /src/nautilus-main.c | |
parent | cab74707c3709d10dc216fd8c53b9da529bf4d14 (diff) | |
download | nautilus-554ba2f25eacecb86455acb7bd17106f6a789fe6.tar.gz |
Call gnome_vfs_shutdown before unreffing application to avoid crashes on
2003-09-18 Alexander Larsson <alexl@redhat.com>
* src/nautilus-main.c (main):
Call gnome_vfs_shutdown before unreffing application to
avoid crashes on shutdown.
Diffstat (limited to 'src/nautilus-main.c')
-rw-r--r-- | src/nautilus-main.c | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/src/nautilus-main.c b/src/nautilus-main.c index a752d9b61..d451f7f4c 100644 --- a/src/nautilus-main.c +++ b/src/nautilus-main.c @@ -252,6 +252,8 @@ main (int argc, char *argv[]) bonobo_activate (); /* do now since we need it before main loop */ + application = NULL; + /* Do either the self-check or the real work. */ if (perform_self_check) { #ifndef NAUTILUS_OMIT_SELF_CHECK @@ -279,12 +281,19 @@ main (int argc, char *argv[]) if (is_event_loop_needed ()) { gtk_main (); } - bonobo_object_unref (application); } poptFreeContext (popt_context); gnome_vfs_shutdown (); + + /* This has to be done after gnome_vfs_shutdown, because shutdown + * can call pending completion callbacks which reference application. + */ + if (application != NULL) { + bonobo_object_unref (application); + } + eel_debug_shut_down (); bonobo_ui_debug_shutdown (); |