[evolution] Bug 703638 - Keep ItipView alive while connecting to calendar



commit a83157c7787025e3c2b336043707e0f26f7e46f3
Author: Matthew Barnes <mbarnes redhat com>
Date:   Sun Jul 7 10:11:07 2013 -0400

    Bug 703638 - Keep ItipView alive while connecting to calendar

 modules/itip-formatter/itip-view.c |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/modules/itip-formatter/itip-view.c b/modules/itip-formatter/itip-view.c
index b0a7f42..3f77f40 100644
--- a/modules/itip-formatter/itip-view.c
+++ b/modules/itip-formatter/itip-view.c
@@ -3581,6 +3581,7 @@ itip_view_cal_opened_cb (GObject *source_object,
 
 exit:
        g_clear_object (&client);
+       g_clear_object (&view);
 }
 
 static void
@@ -3633,7 +3634,7 @@ start_calendar_server_by_uid (EMailPartItip *pitip,
                start_calendar_server (
                        pitip, view, source, type,
                        itip_view_cal_opened_cb,
-                       view);
+                       g_object_ref (view));
                g_object_unref (source);
        }
 }
@@ -3652,7 +3653,7 @@ source_selected_cb (ItipView *view,
        start_calendar_server (
                pitip, view, source, pitip->type,
                itip_view_cal_opened_cb,
-               view);
+               g_object_ref (view));
 }
 
 static void


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