free old statusbar drawable

This commit is contained in:
Julien Danjou 2007-12-30 18:13:33 +01:00
parent 6e3b3da6c0
commit a051c2db09
1 changed files with 2 additions and 1 deletions

View File

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