[evolution-patches] Summary patch



This avoids a memory problem when the summary control gets destroyed.

-- Ettore
? GNOME_Evolution_Summary.oaf.in
? e-summary.c.mine
Index: ChangeLog
===================================================================
RCS file: /cvs/gnome/evolution/my-evolution/ChangeLog,v
retrieving revision 1.284
diff -u -p -r1.284 ChangeLog
--- ChangeLog	16 May 2003 16:45:10 -0000	1.284
+++ ChangeLog	16 May 2003 16:46:24 -0000
@@ -1,5 +1,9 @@
 2003-05-16  Ettore Perazzoli  <ettore ximian com>
 
+	* e-summary.c (destroy): Remove the weak pointer on priv->control.
+
+2003-05-16  Ettore Perazzoli  <ettore ximian com>
+
 	* e-summary-calendar.c (setup_calendar): Fix typo, celendar_path
 	-> calendar_path.
 
Index: e-summary.c
===================================================================
RCS file: /cvs/gnome/evolution/my-evolution/e-summary.c,v
retrieving revision 1.62
diff -u -p -r1.62 e-summary.c
--- e-summary.c	15 May 2003 21:58:07 -0000	1.62
+++ e-summary.c	16 May 2003 16:46:24 -0000
@@ -165,6 +165,12 @@ destroy (GtkObject *object)
 	}
 	if (summary->tasks) {
 		e_summary_tasks_free (summary);
+
+	}
+
+	if (summary->priv->control) {
+		g_object_remove_weak_pointer (G_OBJECT (summary->priv->control), (void **) &summary->priv->control);
+		summary->priv->control = NULL;
 	}
 
 	if (priv->tomorrow_timeout_id != 0)


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