[cairo-commit] cairo/src cairo.c,1.45,1.46

Carl Worth commit at pdx.freedesktop.org
Wed Jan 12 14:40:16 PST 2005


Committed by: cworth

Update of /cvs/cairo/cairo/src
In directory gabe:/tmp/cvs-serv4879/src

Modified Files:
	cairo.c 
Log Message:
        * src/cairo.c (cairo_sane_state): A NULL cairo_t * is not sane.

        * cairo.pc.in (Libs,Cflags): Add freetype flags so that things
        work with freetype in a non-standard location, (a little extra
        work here since freetype doesn't use pkg-config).

        * TODO: Add several items culled from recent mailing list
        discussions.

        * BUGS: Add bugs on cache locking and surface pattern scaling.


Index: cairo.c
===================================================================
RCS file: /cvs/cairo/cairo/src/cairo.c,v
retrieving revision 1.45
retrieving revision 1.46
diff -u -d -r1.45 -r1.46
--- cairo.c	20 Dec 2004 17:43:59 -0000	1.45
+++ cairo.c	12 Jan 2005 22:40:14 -0000	1.46
@@ -45,6 +45,9 @@
 static int 
 cairo_sane_state (cairo_t *cr)
 {    
+    if (cr == NULL)
+	return 0;
+
     switch (cr->status) {
     case CAIRO_STATUS_SUCCESS:
     case CAIRO_STATUS_NO_MEMORY:




More information about the cairo-commit mailing list