From a051c2db0919cca87b53662d3231271c57085f2c Mon Sep 17 00:00:00 2001 From: Julien Danjou Date: Sun, 30 Dec 2007 18:13:33 +0100 Subject: [PATCH] free old statusbar drawable --- statusbar.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/statusbar.c b/statusbar.c index 09a2eef61..eaf08bda9 100644 --- a/statusbar.c +++ b/statusbar.c @@ -45,6 +45,8 @@ statusbar_draw(int screen) if(vscreen.statusbar->position == BarOff) return; + XFreePixmap(globalconf.display, vscreen.statusbar->drawable); + DrawCtx *ctx = draw_get_context(phys_screen, vscreen.statusbar->width, vscreen.statusbar->height); @@ -99,7 +101,6 @@ statusbar_draw(int screen) p_delete(&ctx); } - statusbar_display(screen); }