aboutsummaryrefslogtreecommitdiffstats
path: root/widgets/misc
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2010-02-12 20:43:00 +0800
committerMatthew Barnes <mbarnes@redhat.com>2010-02-12 20:44:51 +0800
commit53cdaa7e1555858697b01ed9958ad6fb83ab8821 (patch)
tree91bce998a03a3ae3fe2e117b0fba16d621a9fd52 /widgets/misc
parent35b167f240259c09102541f680ed645918cd5e0d (diff)
downloadgsoc2013-evolution-53cdaa7e1555858697b01ed9958ad6fb83ab8821.tar
gsoc2013-evolution-53cdaa7e1555858697b01ed9958ad6fb83ab8821.tar.gz
gsoc2013-evolution-53cdaa7e1555858697b01ed9958ad6fb83ab8821.tar.bz2
gsoc2013-evolution-53cdaa7e1555858697b01ed9958ad6fb83ab8821.tar.lz
gsoc2013-evolution-53cdaa7e1555858697b01ed9958ad6fb83ab8821.tar.xz
gsoc2013-evolution-53cdaa7e1555858697b01ed9958ad6fb83ab8821.tar.zst
gsoc2013-evolution-53cdaa7e1555858697b01ed9958ad6fb83ab8821.zip
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.
Diffstat (limited to 'widgets/misc')
-rw-r--r--widgets/misc/e-import-assistant.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/widgets/misc/e-import-assistant.c b/widgets/misc/e-import-assistant.c
index 77108c01a5..30d41385f4 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;
}