[evolution-patches] Fix for 309684



Hi,

Attached is a patch for
http://bugzilla.gnome.org/show_bug.cgi?id=309684, where bookviews are
not unreferenced correctly and leak (resulting in the VM size of eds
growing massively by 8 meg per leak).

Ross
-- 
Ross Burton                                 mail: ross burtonini com
                                          jabber: ross burtonini com
                                     www: http://www.burtonini.com./
 PGP Fingerprint: 1A21 F5B0 D8D0 CFE3 81D4 E25A 2D09 E447 D0B4 33DF

Index: libedataserverui/e-contact-store.c
===================================================================
RCS file: /cvs/gnome/evolution-data-server/libedataserverui/e-contact-store.c,v
retrieving revision 1.9
diff -u -r1.9 e-contact-store.c
--- libedataserverui/e-contact-store.c	6 Jul 2005 08:39:04 -0000	1.9
+++ libedataserverui/e-contact-store.c	7 Jul 2005 08:35:21 -0000
@@ -560,9 +560,12 @@
 	}
 
 	/* If current view finished, do nothing */
-	if (book_view == source->book_view)
+	if (book_view == source->book_view) {
+		stop_view (contact_store, source->book_view);
+		g_object_unref (source->book_view);
+		source->book_view = NULL;
 		return;
-
+	}
 	g_assert (book_view == source->book_view_pending);
 
 	/* However, if it was a pending view, calculate and emit the differences between that


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