From: Max Kellermann Date: Sat, 17 Oct 2009 22:12:37 +0000 (+0200) Subject: screen_outputs: reset list_window length in clear_outputs_list() X-Git-Tag: release-0.16~97 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=3d8255cbc661fb7bb4bab26c8cf46dca1bc3d4dd;p=ncmpc.git screen_outputs: reset list_window length in clear_outputs_list() Fix an assertion failure on disconnect. --- diff --git a/src/screen_outputs.c b/src/screen_outputs.c index e4c3bc6..22337da 100644 --- a/src/screen_outputs.c +++ b/src/screen_outputs.c @@ -102,6 +102,7 @@ clear_outputs_list(void) g_ptr_array_foreach(mpd_outputs, clear_output_element, NULL); g_ptr_array_remove_range(mpd_outputs, 0, mpd_outputs->len); + list_window_set_length(lw, 0); } static void