diff options
author | Tomas Popela <tpopela@redhat.com> | 2013-03-05 22:18:29 +0800 |
---|---|---|
committer | Milan Crha <mcrha@redhat.com> | 2013-03-05 22:18:29 +0800 |
commit | 4fd92fa8b0882b8b731ff16a397de17a0b99abde (patch) | |
tree | 158aff1767b201f993ba3a285c0c88261de4189e /modules/itip-formatter | |
parent | 853abba1d383c27733c0fca23aaae165c30eea54 (diff) | |
download | gsoc2013-evolution-4fd92fa8b0882b8b731ff16a397de17a0b99abde.tar gsoc2013-evolution-4fd92fa8b0882b8b731ff16a397de17a0b99abde.tar.gz gsoc2013-evolution-4fd92fa8b0882b8b731ff16a397de17a0b99abde.tar.bz2 gsoc2013-evolution-4fd92fa8b0882b8b731ff16a397de17a0b99abde.tar.lz gsoc2013-evolution-4fd92fa8b0882b8b731ff16a397de17a0b99abde.tar.xz gsoc2013-evolution-4fd92fa8b0882b8b731ff16a397de17a0b99abde.tar.zst gsoc2013-evolution-4fd92fa8b0882b8b731ff16a397de17a0b99abde.zip |
[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.
Diffstat (limited to 'modules/itip-formatter')
-rw-r--r-- | 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 1b8ec7b040..b73939239a 100644 --- a/modules/itip-formatter/itip-view.c +++ b/modules/itip-formatter/itip-view.c @@ -3853,6 +3853,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) @@ -4200,7 +4201,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 ( |