[cairo-commit] src/cairo.c

Chris Wilson ickle at kemper.freedesktop.org
Tue Jun 16 03:38:16 PDT 2009


 src/cairo.c |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

New commits:
commit 116c93cb7fe8ad55457c53b4652e8d3117581158
Author: Chris Wilson <chris at chris-wilson.co.uk>
Date:   Tue Jun 16 11:36:36 2009 +0100

    [cairo] Remove instance of 'return free()'
    
    Gah! This is a GCC-ism, so therefore it has to go.

diff --git a/src/cairo.c b/src/cairo.c
index 91b8828..5f26d6f 100644
--- a/src/cairo.c
+++ b/src/cairo.c
@@ -150,7 +150,8 @@ _context_put (cairo_t *cr)
     if (cr < &_context_stash.pool[0] ||
 	cr >= &_context_stash.pool[CAIRO_STASH_SIZE])
     {
-	return free (cr);
+	free (cr);
+	return;
     }
 
     avail = ~(1 << (cr - &_context_stash.pool[0]));


More information about the cairo-commit mailing list