summaryrefslogtreecommitdiff
path: root/tests/test-pangocairo-threads.c
diff options
context:
space:
mode:
authorBehdad Esfahbod <behdad@behdad.org>2013-01-07 15:29:15 -0600
committerBehdad Esfahbod <behdad@behdad.org>2013-01-07 15:29:15 -0600
commit4dd5a5e18d4d3184ce4c97e0bcd9e97ebb267831 (patch)
treed2e427ce575b1ce12667a6c259482265526fc7fa /tests/test-pangocairo-threads.c
parent96f6c065deae8093f3c27e040ac1586de6113309 (diff)
downloadpango-4dd5a5e18d4d3184ce4c97e0bcd9e97ebb267831.tar.gz
Fix last leak in test-pangocairo-threads
Diffstat (limited to 'tests/test-pangocairo-threads.c')
-rw-r--r--tests/test-pangocairo-threads.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/test-pangocairo-threads.c b/tests/test-pangocairo-threads.c
index 520f7c3f..6d497601 100644
--- 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));
}