[cairo-commit] cairo/src cairo-scaled-font.c,1.6,1.7
Carl Worth
commit at pdx.freedesktop.org
Tue Sep 13 15:53:22 PDT 2005
Committed by: cworth
Update of /cvs/cairo/cairo/src
In directory gabe:/tmp/cvs-serv16795/src
Modified Files:
cairo-scaled-font.c
Log Message:
2005-09-13 Carl Worth <cworth at cworth.org>
* src/cairo-scaled-font.c (_cairo_scaled_font_text_to_glyphs): Set
return-value *glyphs to NULL after freeing it in the error case.
Index: cairo-scaled-font.c
===================================================================
RCS file: /cvs/cairo/cairo/src/cairo-scaled-font.c,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -d -r1.6 -r1.7
--- cairo-scaled-font.c 13 Sep 2005 19:40:36 -0000 1.6
+++ cairo-scaled-font.c 13 Sep 2005 22:53:19 -0000 1.7
@@ -702,6 +702,7 @@
&scaled_glyph);
if (status) {
free (*glyphs);
+ *glyphs = NULL;
goto FAIL;
}
More information about the cairo-commit
mailing list