summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog5
-rw-r--r--src/bar.c2
2 files changed, 7 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 919ef78..65cb7e1 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -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
diff --git a/src/bar.c b/src/bar.c
index 0859d7f..516c207 100644
--- a/src/bar.c
+++ b/src/bar.c
@@ -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. */