diff options
author | Alfred Peng <alfred.peng@sun.com> | 2006-08-08 10:57:33 -0700 |
---|---|---|
committer | Carl Worth <cworth@cworth.org> | 2006-08-08 10:58:42 -0700 |
commit | db06681b487873788b51a6766894fc619eb8d8f2 (patch) | |
tree | 4c33bb30cdc95da3d181175688509f703cfb0c3a | |
parent | 6ff531c1823421ff60d084f94e7221cfb1d3c9b7 (diff) |
Fix leaks in failure paths in pixman gradient creation
-rw-r--r-- | pixman/src/icimage.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/pixman/src/icimage.c b/pixman/src/icimage.c index 9cf054918..ea04636f0 100644 --- a/pixman/src/icimage.c +++ b/pixman/src/icimage.c @@ -233,6 +233,7 @@ pixman_image_create_linear_gradient (const pixman_linear_gradient_t *gradient, 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 (const pixman_radial_gradient_t *gradient, if (_pixman_init_gradient (&image->pSourcePict->gradient, stops, n_stops)) { + free (radial); free (image); return 0; } |