aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorgotmor <gotmor@f2baff5b-bf2c-0410-a398-912abdc3d8b2>2007-07-23 07:34:47 +0000
committergotmor <gotmor@f2baff5b-bf2c-0410-a398-912abdc3d8b2>2007-07-23 07:34:47 +0000
commit842a759e62f5945e76b2b2f5fe913cb7a5a8de0e (patch)
treec164f5bb3e3444ebf9ea7ba617b2b9461b0f3420
parent659ce3daaaac43ed08190d121de71bf236e0718d (diff)
downloaddzen-842a759e62f5945e76b2b2f5fe913cb7a5a8de0e.tar.gz
dzen-842a759e62f5945e76b2b2f5fe913cb7a5a8de0e.zip
free bitmaps after drawing them
git-svn-id: http://dzen.googlecode.com/svn/trunk@142 f2baff5b-bf2c-0410-a398-912abdc3d8b2
-rw-r--r--draw.c2
1 files changed, 2 insertions, 0 deletions
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;
}
}