From 842a759e62f5945e76b2b2f5fe913cb7a5a8de0e Mon Sep 17 00:00:00 2001 From: gotmor Date: Mon, 23 Jul 2007 07:34:47 +0000 Subject: free bitmaps after drawing them git-svn-id: http://dzen.googlecode.com/svn/trunk@142 f2baff5b-bf2c-0410-a398-912abdc3d8b2 --- draw.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/draw.c b/draw.c index a86e7ff..99e21b9 100644 --- a/draw.c +++ b/draw.c @@ -255,6 +255,7 @@ parse_line(const char *line, int lnr, int align, int reverse, int nodraw) { && ((h/2 + px + bm_w) < dzen.w)) { XCopyPlane(dzen.dpy, bm, pm, dzen.tgc, 0, 0, bm_w, bm_h, px, 0, 1); + XFreePixmap(dzen.dpy, bm); px += bm_w; } } @@ -310,6 +311,7 @@ parse_line(const char *line, int lnr, int align, int reverse, int nodraw) { && (h/2 + px + bm_w < dzen.w)) { XCopyPlane(dzen.dpy, bm, pm, dzen.tgc, 0, 0, bm_w, bm_h, px, 0, 1); + XFreePixmap(dzen.dpy, bm); px += bm_w; } } -- cgit v1.2.3-54-g00ecf