sway

i3-compatible Wayland compositor
git clone https://git.awy.one/sway
Log | Files | Refs | README | LICENSE

commit e39f846247c639ed1194ffeaa460acf6b7900c2c
parent 8d6f3fff24860c7bfdb443f8a734984ca1c83db2
Author: Drew DeVault <sir@cmpwn.com>
Date:   Fri, 27 Nov 2015 22:31:22 -0500

Free outputs on registry teardown

Diffstat:
Mwayland/registry.c | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/wayland/registry.c b/wayland/registry.c @@ -3,6 +3,7 @@ #include <string.h> #include "wayland-desktop-shell-client-protocol.h" #include "client/registry.h" +#include "stringop.h" #include "log.h" static void display_handle_mode(void *data, struct wl_output *wl_output, @@ -110,7 +111,6 @@ void registry_teardown(struct registry *registry) { wl_display_disconnect(registry->display); } if (registry->outputs) { - // TODO: Free the outputs themselves - list_free(registry->outputs); + free_flat_list(registry->outputs); } }