[cairo-commit] pixman/src

Carl Worth cworth at kemper.freedesktop.org
Tue Aug 8 10:58:54 PDT 2006


 pixman/src/icimage.c |    2 ++
 1 files changed, 2 insertions(+)

New commits:
diff-tree db06681b487873788b51a6766894fc619eb8d8f2 (from 6ff531c1823421ff60d084f94e7221cfb1d3c9b7)
Author: Alfred Peng <alfred.peng at sun.com>
Date:   Tue Aug 8 10:57:33 2006 -0700

    Fix leaks in failure paths in pixman gradient creation

diff --git a/pixman/src/icimage.c b/pixman/src/icimage.c
index 9cf0549..ea04636 100644
--- a/pixman/src/icimage.c
+++ b/pixman/src/icimage.c
@@ -233,6 +233,7 @@ pixman_image_create_linear_gradient (con
 
     if (_pixman_init_gradient (&image->pSourcePict->gradient, stops, n_stops))
     {
+	free (linear);
 	free (image);
 	return 0;
     }
@@ -288,6 +289,7 @@ pixman_image_create_radial_gradient (con
 
     if (_pixman_init_gradient (&image->pSourcePict->gradient, stops, n_stops))
     {
+	free (radial);
 	free (image);
 	return 0;
     }


More information about the cairo-commit mailing list