summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2013-01-29 02:52:10 +0000
committerChris Wilson <chris@chris-wilson.co.uk>2013-01-29 02:52:10 +0000
commita364a106b257c4493ba7b3badacc63599ba6064a (patch)
treeb482f721b3c3a68e269ef847679d0d36c9a59973
parent02a2baa8dcf49ad2d9766d43578ba216fab0d464 (diff)
xlib/shm: Tidy up destroying the mempool for a shm block
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
-rw-r--r--src/cairo-xlib-surface-shm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cairo-xlib-surface-shm.c b/src/cairo-xlib-surface-shm.c
index d27b2d68..9c88cb8d 100644
--- a/src/cairo-xlib-surface-shm.c
+++ b/src/cairo-xlib-surface-shm.c
@@ -504,7 +504,7 @@ _cairo_xlib_shm_info_find (cairo_xlib_display_t *display, size_t size,
*last_request = info->last_request;
_pqueue_pop (&display->shm->info);
- _cairo_mempool_free (&info->pool->mem, info->mem);
+ _cairo_mempool_free (&pool->mem, info->mem);
free (info);
if (pool->mem.free_bytes >= size) {