Fix segfault on selbar de-allocation. fixes #138

This commit is contained in:
Joris van Zwieten
2011-08-02 16:21:20 +02:00
committed by Philippe Pepiot
parent b42c42245a
commit 5e2bcf03d6

View File

@@ -350,7 +350,9 @@ infobar_destroy(void)
barwin_delete_subwin(infobar[sc].tags_board);
barwin_delete(infobar[sc].tags_board);
barwin_delete(infobar[sc].selbar);
if(conf.bars.selbar)
barwin_delete(infobar[sc].selbar);
barwin_delete_subwin(infobar[sc].bar);
barwin_delete(infobar[sc].bar);
}