summaryrefslogtreecommitdiff
blob: e0862e1dff24fdb67548e0dc98120b362adb1ded (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
--- src/nautilus-main.c.old	2003-10-05 18:47:28.336065464 +0800
+++ src/nautilus-main.c	2003-10-05 18:48:37.015624584 +0800
@@ -252,6 +252,8 @@
 	
 	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,17 @@
 		if (is_event_loop_needed ()) {
 			gtk_main ();
 		}
-		bonobo_object_unref (application);
+
 	}
 
 	poptFreeContext (popt_context);
 
 	gnome_vfs_shutdown ();
+
+	if( application != NULL ) {
+		bonobo_object_unref( application );
+	}
+	
 	eel_debug_shut_down ();
 	bonobo_ui_debug_shutdown ();