diff options
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | src/bar.c | 2 |
2 files changed, 7 insertions, 0 deletions
@@ -1,3 +1,8 @@ +2003-05-18 Shawn Betts <sabetts@sfu.ca> + + * src/bar.c (marked_wrapped_message): Free the GC's created with + XCreateGC. + 2003-05-17 Shawn Betts <sabetts@sfu.ca> * configure.in: version bump to 1.3.0-cvs @@ -409,6 +409,7 @@ marked_wrapped_message (char *msg, int mark_start, int mark_end) XFillRectangle (dpy, s->bar_window, lgc, start, (start_line-1)*line_height + defaults.bar_y_padding, width, (end_line-start_line+1)*line_height); + XFreeGC (dpy, lgc); lgv.foreground = s->bg_color; lgc = XCreateGC(dpy, s->root, mask, &lgv); @@ -416,6 +417,7 @@ marked_wrapped_message (char *msg, int mark_start, int mark_end) XFillRectangle (dpy, s->bar_window, lgc, start, (start_line-1)*line_height + defaults.bar_y_padding, width, (end_line-start_line+1)*line_height); + XFreeGC (dpy, lgc); } /* Keep a record of the message. */ |