Fixed a bogus call to cairo_destroy
authorJohan Bilien <jobi@litl.com>
Sun, 7 Nov 2010 14:52:11 +0000 (09:52 -0500)
committerKristian Høgsberg <krh@bitplanet.net>
Mon, 8 Nov 2010 13:55:50 +0000 (08:55 -0500)
clients/image.c

index d9e0c3e..cf98266 100644 (file)
@@ -162,7 +162,7 @@ image_draw(struct image *image)
                                               rectangle.width,
                                               rectangle.height);
 
-       cairo_destroy(wsurface);
+       cairo_surface_destroy(wsurface);
        cr = cairo_create(surface);
        cairo_set_operator(cr, CAIRO_OPERATOR_SOURCE);
        cairo_set_source_rgba(cr, 0, 0, 0, 1);