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); }