aboutsummaryrefslogtreecommitdiffstats
path: root/libemail-engine
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2013-02-22 22:51:54 +0800
committerMatthew Barnes <mbarnes@redhat.com>2013-02-22 22:52:25 +0800
commiteff9783d94eff6f7b0a2d03f4afac81cd0964b0b (patch)
treee8476dcd594896dbecbfae2cd572a01e1b29dee3 /libemail-engine
parent2ea9684aa676126318642831471519d5680c6f83 (diff)
downloadgsoc2013-evolution-eff9783d94eff6f7b0a2d03f4afac81cd0964b0b.tar
gsoc2013-evolution-eff9783d94eff6f7b0a2d03f4afac81cd0964b0b.tar.gz
gsoc2013-evolution-eff9783d94eff6f7b0a2d03f4afac81cd0964b0b.tar.bz2
gsoc2013-evolution-eff9783d94eff6f7b0a2d03f4afac81cd0964b0b.tar.lz
gsoc2013-evolution-eff9783d94eff6f7b0a2d03f4afac81cd0964b0b.tar.xz
gsoc2013-evolution-eff9783d94eff6f7b0a2d03f4afac81cd0964b0b.tar.zst
gsoc2013-evolution-eff9783d94eff6f7b0a2d03f4afac81cd0964b0b.zip
EMailSession: Use camel_session_ref_main_context().
Diffstat (limited to 'libemail-engine')
-rw-r--r--libemail-engine/e-mail-session.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/libemail-engine/e-mail-session.c b/libemail-engine/e-mail-session.c
index 53d2e7982e..4d34b6f922 100644
--- a/libemail-engine/e-mail-session.c
+++ b/libemail-engine/e-mail-session.c
@@ -1819,7 +1819,7 @@ mail_session_forward_to_sync (CamelSession *session,
GSource *timeout_source;
main_context =
- camel_session_get_main_context (session);
+ camel_session_ref_main_context (session);
timeout_source =
g_timeout_source_new_seconds (60);
@@ -1830,6 +1830,8 @@ mail_session_forward_to_sync (CamelSession *session,
priv->preparing_flush = g_source_attach (
timeout_source, main_context);
g_source_unref (timeout_source);
+
+ g_main_context_unref (main_context);
}
g_mutex_unlock (&priv->preparing_flush_lock);