[evolution-patches] (calendar) patch for #71545



-- 
Rodrigo Moya <rodrigo novell com>
Index: ChangeLog
===================================================================
RCS file: /cvs/gnome/evolution-data-server/calendar/ChangeLog,v
retrieving revision 1.419
diff -u -p -r1.419 ChangeLog
--- ChangeLog	11 Feb 2005 05:26:41 -0000	1.419
+++ ChangeLog	11 Feb 2005 12:32:47 -0000
@@ -1,3 +1,11 @@
+2005-02-11  Rodrigo Moya <rodrigo gnome-db org>
+
+	Fixes #71545
+
+	* libecal/e-cal-view.c (objects_added_cb, objects_modified_cb,
+	objects_removed_cb): ref/unref the view before/after emitting the
+	signal.
+
 2005-02-11  Chenthill Palanisamy  <pchenthill novell com>
 
 	Fixes a hang in offline
Index: libecal/e-cal-view.c
===================================================================
RCS file: /cvs/gnome/evolution-data-server/calendar/libecal/e-cal-view.c,v
retrieving revision 1.3
diff -u -p -r1.3 e-cal-view.c
--- libecal/e-cal-view.c	17 Jan 2005 11:08:31 -0000	1.3
+++ libecal/e-cal-view.c	11 Feb 2005 12:32:47 -0000
@@ -74,7 +74,9 @@ objects_added_cb (ECalViewListener *list
 
 	view = E_CAL_VIEW (data);
 
+	g_object_ref (view);
 	g_signal_emit (G_OBJECT (view), signals[OBJECTS_ADDED], 0, objects);
+	g_object_unref (view);
 }
 
 static void
@@ -84,7 +86,9 @@ objects_modified_cb (ECalViewListener *l
 
 	view = E_CAL_VIEW (data);
 
+	g_object_ref (view);
 	g_signal_emit (G_OBJECT (view), signals[OBJECTS_MODIFIED], 0, objects);
+	g_object_unref (view);
 }
 
 static void
@@ -94,7 +98,9 @@ objects_removed_cb (ECalViewListener *li
 
 	view = E_CAL_VIEW (data);
 
+	g_object_ref (view);
 	g_signal_emit (G_OBJECT (view), signals[OBJECTS_REMOVED], 0, uids);
+	g_object_unref (view);
 }
 
 static void


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