From 3f36130533075cb37ced1b6aa1ba09b6cd916993 Mon Sep 17 00:00:00 2001 From: Julien Danjou Date: Sun, 11 Nov 2007 22:38:29 +0100 Subject: [PATCH] fix X memory leak in draw_rotate() --- draw.c | 1 + 1 file changed, 1 insertion(+) diff --git a/draw.c b/draw.c index f84e30110..dc66614bd 100644 --- a/draw.c +++ b/draw.c @@ -148,6 +148,7 @@ draw_rotate(Display *disp, int screen, Drawable drawable, int dw, int dh, double cairo_destroy(cr); cairo_surface_destroy(source); + cairo_surface_destroy(surface); return newdrawable; }