Code

screen_outputs: reset list_window length in clear_outputs_list()
authorMax Kellermann <max@duempel.org>
Sat, 17 Oct 2009 22:12:37 +0000 (00:12 +0200)
committerMax Kellermann <max@duempel.org>
Sat, 17 Oct 2009 22:12:37 +0000 (00:12 +0200)
Fix an assertion failure on disconnect.

src/screen_outputs.c

index e4c3bc6cc618e90160b264d988f041d078cb9667..22337da61f8920e554ce9fc109f5ad02ea8016bf 100644 (file)
@@ -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