[evolution/gnome-3-6] [itip-formatter] Reference a view when searching for a calendar
- From: Milan Crha <mcrha src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution/gnome-3-6] [itip-formatter] Reference a view when searching for a calendar
- Date: Tue, 5 Mar 2013 14:24:33 +0000 (UTC)
commit 343d8f5f398a9eb5877a8943ec4c22e8a97b35cf
Author: Tomas Popela <tpopela redhat com>
Date: Tue Mar 5 15:23:52 2013 +0100
[itip-formatter] Reference a view when searching for a calendar
There were printed warnings on console, which may cause crashes, when
the meeting invitation was inside an attached message. By adding
a reference to the view it'll not disappear before the search is
done with it.
modules/itip-formatter/itip-view.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/modules/itip-formatter/itip-view.c b/modules/itip-formatter/itip-view.c
index 644c97f..5291f16 100644
--- a/modules/itip-formatter/itip-view.c
+++ b/modules/itip-formatter/itip-view.c
@@ -3842,6 +3842,7 @@ decrease_find_data (FormatItipFindData *fd)
g_cancellable_disconnect (fd->itip_cancellable, fd->cancelled_id);
g_object_unref (fd->cancellable);
g_object_unref (fd->itip_cancellable);
+ g_object_unref (fd->view);
g_free (fd->uid);
g_free (fd->rid);
if (fd->sexp)
@@ -4193,7 +4194,7 @@ find_server (EMailPartItip *pitip,
fd = g_new0 (FormatItipFindData, 1);
fd->puri = pitip;
- fd->view = view;
+ fd->view = g_object_ref (view);
fd->itip_cancellable = g_object_ref (pitip->cancellable);
fd->cancellable = g_cancellable_new ();
fd->cancelled_id = g_cancellable_connect (
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]