Fixed memory leaks after history show.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
This commit is contained in:
Andrew Borodin 2010-07-28 12:26:41 +04:00
parent 5cccff75fb
commit 460311c7c7

View File

@ -2751,9 +2751,7 @@ listbox_key (WListbox * l, int key)
static inline void static inline void
listbox_destroy (WListbox * l) listbox_destroy (WListbox * l)
{ {
/* don't delete list in modifable listbox */ listbox_remove_list (l);
if (!l->deletable)
listbox_remove_list (l);
} }
static cb_ret_t static cb_ret_t