projects
/
platform
/
upstream
/
pango.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
96f6c06
)
Fix last leak in test-pangocairo-threads
author
Behdad Esfahbod
<behdad@behdad.org>
Mon, 7 Jan 2013 21:29:15 +0000
(15:29 -0600)
committer
Behdad Esfahbod
<behdad@behdad.org>
Mon, 7 Jan 2013 21:29:15 +0000
(15:29 -0600)
tests/test-pangocairo-threads.c
patch
|
blob
|
history
diff --git
a/tests/test-pangocairo-threads.c
b/tests/test-pangocairo-threads.c
index
520f7c3
..
6d49760
100644
(file)
--- a/
tests/test-pangocairo-threads.c
+++ b/
tests/test-pangocairo-threads.c
@@
-82,10
+82,12
@@
main (int argc, char **argv)
for (i = 0; i < num_threads; i++)
{
+ char buf[10];
cairo_surface_t *surface = create_surface ();
g_ptr_array_add (surfaces, surface);
+ snprintf (buf, sizeof (buf), "%d", i);
g_ptr_array_add (threads,
- g_thread_new (
g_strdup_printf ("%d", i)
,
+ g_thread_new (
buf
,
thread_func,
surface));
}