[Gnome-print] Ref counting problem on font list ...



Hi guys,

	May I commit this so gb's Screen object works :-)

	Cheers,

		Michael.
Index: libgnomeprint/ChangeLog
===================================================================
RCS file: /cvs/gnome/gnome-print/libgnomeprint/ChangeLog,v
retrieving revision 1.246
diff -u -r1.246 ChangeLog
--- libgnomeprint/ChangeLog	2001/01/12 00:49:08	1.246
+++ libgnomeprint/ChangeLog	2001/01/18 22:09:28
@@ -1,3 +1,7 @@
+2001-01-18  Michael Meeks  <michael@helixcode.com>
+
+	* gp-fontmap.c (gnome_font_list): fix reference counting cockup.
+
 2001-01-11  Paolo Molaro  <lupus@ximian.com>
 
 	* gnome-canvas-hacktext.c
(gnome_canvas_hacktext_class_init): Change
Index: libgnomeprint/gp-fontmap.c
===================================================================
RCS file: /cvs/gnome/gnome-print/libgnomeprint/gp-fontmap.c,v
retrieving revision 1.7
diff -u -r1.7 gp-fontmap.c
--- libgnomeprint/gp-fontmap.c	2000/11/21 18:49:52	1.7
+++ libgnomeprint/gp-fontmap.c	2001/01/18 22:09:30
@@ -561,10 +561,7 @@
 		map->fontlist = g_list_reverse (map->fontlist);
 		if (!fontlist2map) fontlist2map = g_hash_table_new (NULL,
NULL);
 		g_hash_table_insert (fontlist2map, map->fontlist, map);
-		gp_fontmap_ref (map);
 	}
-
-	gp_fontmap_release (map);
 
 	return map->fontlist;
 }

-- 
 mmeeks@gnu.org  <><, Pseudo Engineer, itinerant idiot





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