summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrea Canciani <ranma42@gmail.com>2011-07-03 18:19:07 +0200
committerAndrea Canciani <ranma42@gmail.com>2011-07-05 10:00:14 +0200
commitef659649d3acfb5f91996dd2bbdfd2a2833d9f38 (patch)
tree6aa4187b8854834fbd5aa297297c2db806c2304e
parentfe3ca9c36f15403d8d93263acb758100836ad3cb (diff)
Clean up context_pool upon static data reset
In commit f46ba56d5b8c54be5f0379aca204c0ce05d0f58a the static context stash was replaced by a dynamic freed pool, which needs to be cleared upon resets. Fixes: cairo.c:181: warning: ‘context_pool’ defined but not used Reported-by: Uli Schlachter <psychon@znc.in>
-rw-r--r--src/cairo.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/cairo.c b/src/cairo.c
index 32a1f9c6..3a4b2a4a 100644
--- a/src/cairo.c
+++ b/src/cairo.c
@@ -233,6 +233,8 @@ _cairo_reset_static_data (void)
}
}
CAIRO_MUTEX_UNLOCK (_cairo_error_mutex);
+
+ _freed_pool_reset (&context_pool);
}
/**