[cairo-commit] src/cairo-xlib-surface-shm.c
Chris Wilson
ickle at kemper.freedesktop.org
Fri Aug 17 07:40:31 PDT 2012
src/cairo-xlib-surface-shm.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit e568e7c18b6aa631e4aedd44c44a14bbe6d72976
Author: Chris Wilson <chris at chris-wilson.co.uk>
Date: Fri Aug 17 15:38:16 2012 +0100
xlib/shm: Fix up the shrinking of the priority queue
Signed-off-by: Chris Wilson <chris at chris-wilson.co.uk>
diff --git a/src/cairo-xlib-surface-shm.c b/src/cairo-xlib-surface-shm.c
index 37423d5..5c23c9b 100644
--- a/src/cairo-xlib-surface-shm.c
+++ b/src/cairo-xlib-surface-shm.c
@@ -156,7 +156,7 @@ _pqueue_shrink (struct pqueue *pq, int min_size)
{
cairo_xlib_shm_info_t **new_elements;
- if (min_size <= pq->max_size)
+ if (min_size > pq->max_size)
return;
new_elements = _cairo_realloc_ab (pq->elements,
More information about the cairo-commit
mailing list