From 1f479a44ac6c170ea96064e295465b2868fb32f1 Mon Sep 17 00:00:00 2001 From: "sayrer@gmail.com" Date: Tue, 11 Sep 2007 13:15:14 -0700 Subject: [PATCH] Bug 391890. leaks from pixman_rect_alloc within _cairo_gstate_clip drawing borders. Patch by Vladimir Vukicevic. r/sr=stuart, a=mconnor --- gfx/cairo/libpixman/src/pixman-region.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gfx/cairo/libpixman/src/pixman-region.c b/gfx/cairo/libpixman/src/pixman-region.c index 28f3e0ce47a..ae40f9c5c82 100644 --- a/gfx/cairo/libpixman/src/pixman-region.c +++ b/gfx/cairo/libpixman/src/pixman-region.c @@ -2523,6 +2523,8 @@ pixman_region_init_rects (pixman_region16_t *region, } pixman_region_init(region); + if (count == 0) + return TRUE; if (!pixman_rect_alloc(region, count)) return FALSE;