[cairo-commit] cairo/src cairo_font.c,1.20,1.21

David Reveman commit at pdx.freedesktop.org
Thu Jul 15 13:38:23 PDT 2004


Committed by: davidr

Update of /cvs/cairo/cairo/src
In directory pdx:/tmp/cvs-serv2750/src

Modified Files:
	cairo_font.c 
Log Message:
Fixed glyph cache memory leak

Index: cairo_font.c
===================================================================
RCS file: /cvs/cairo/cairo/src/cairo_font.c,v
retrieving revision 1.20
retrieving revision 1.21
diff -C2 -d -r1.20 -r1.21
*** cairo_font.c	28 May 2004 19:47:00 -0000	1.20
--- cairo_font.c	15 Jul 2004 20:38:21 -0000	1.21
***************
*** 83,86 ****
--- 83,89 ----
      newfont->backend = font->backend;
  
+     if (newfont->glyph_cache)
+ 	_cairo_glyph_cache_destroy (font->glyph_cache);
+     
      newfont->glyph_cache = font->glyph_cache;
      _cairo_glyph_cache_reference (font->glyph_cache);




More information about the cairo-commit mailing list