projects
/
profile
/
ivi
/
pixman.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1c23142
)
Plug another leak in alphamap test
author
Jon TURNEY
<jon.turney@dronecode.org.uk>
Sun, 24 Oct 2010 14:58:39 +0000
(15:58 +0100)
committer
Søren Sandmann Pedersen
<ssp@redhat.com>
Sun, 24 Oct 2010 19:38:14 +0000
(15:38 -0400)
Even after commit
e46be417cebac984a858da05e61d924889695c9e
alphamap
test is still leaking the alphamap pixmap, leading to mmap() failures
on cygwin
Signed-off-by: Jon TURNEY <jon.turney@dronecode.org.uk>
test/alphamap.c
patch
|
blob
|
history
diff --git
a/test/alphamap.c
b/test/alphamap.c
index
6013e63
..
9fb8969
100644
(file)
--- a/
test/alphamap.c
+++ b/
test/alphamap.c
@@
-82,6
+82,7
@@
create_image (pixman_format_code_t format, pixman_format_code_t alpha_format,
pixman_image_set_alpha_map (image, alpha,
alpha_origin_x, alpha_origin_y);
+ pixman_image_unref (alpha);
}
return image;
@@
-217,6
+218,10
@@
run_test (int s, int d, int sa, int da, int soff, int doff)
}
}
+ pixman_image_set_alpha_map (src, NULL, 0, 0);
+ pixman_image_set_alpha_map (dst, NULL, 0, 0);
+ pixman_image_set_alpha_map (orig_dst, NULL, 0, 0);
+
pixman_image_unref (src);
pixman_image_unref (dst);
pixman_image_unref (orig_dst);