[evolution] Fix command-line import crasher.



commit 53cdaa7e1555858697b01ed9958ad6fb83ab8821
Author: Matthew Barnes <mbarnes redhat com>
Date:   Fri Feb 12 07:43:00 2010 -0500

    Fix command-line import crasher.
    
    GtkAssistant's initial reference is floating, so if command-line import
    fails to find a suitable importer, sink the reference before finalizing
    the GtkAssistant.

 widgets/misc/e-import-assistant.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/widgets/misc/e-import-assistant.c b/widgets/misc/e-import-assistant.c
index 77108c0..30d4138 100644
--- a/widgets/misc/e-import-assistant.c
+++ b/widgets/misc/e-import-assistant.c
@@ -1351,6 +1351,7 @@ e_import_assistant_new_simple (GtkWindow *parent,
 	import_assistant_construct (E_IMPORT_ASSISTANT (assistant));
 
 	if (!set_import_uris (E_IMPORT_ASSISTANT (assistant), uris)) {
+		g_object_ref_sink (assistant);
 		g_object_unref (assistant);
 		return NULL;
 	}



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