diff options
author | gotmor <gotmor@f2baff5b-bf2c-0410-a398-912abdc3d8b2> | 2007-07-23 07:34:47 +0000 |
---|---|---|
committer | gotmor <gotmor@f2baff5b-bf2c-0410-a398-912abdc3d8b2> | 2007-07-23 07:34:47 +0000 |
commit | 842a759e62f5945e76b2b2f5fe913cb7a5a8de0e (patch) | |
tree | c164f5bb3e3444ebf9ea7ba617b2b9461b0f3420 | |
parent | 659ce3daaaac43ed08190d121de71bf236e0718d (diff) | |
download | dzen-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.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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; } } |