[PATCH 1/3] glamor: Fix memory leak in put_image

Markus Wick markus at selfnet.de
Wed May 14 14:08:16 PDT 2014


Signed-off-by: Markus Wick <markus at selfnet.de>
---
 glamor/glamor_image.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/glamor/glamor_image.c b/glamor/glamor_image.c
index 4791d08..c087a13 100644
--- a/glamor/glamor_image.c
+++ b/glamor/glamor_image.c
@@ -92,6 +92,7 @@ glamor_put_image_bail(DrawablePtr drawable, GCPtr gc, int depth, int x, int y,
         glamor_prepare_access_gc(gc))
         fbPutImage(drawable, gc, depth, x, y, w, h, leftPad, format, bits);
     glamor_finish_access(drawable);
+    glamor_finish_access_gc(gc);
 }
 
 void
-- 
1.9.2



More information about the xorg-devel mailing list