aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--wayland/registry.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/wayland/registry.c b/wayland/registry.c
index a7eb89d1..3c869d25 100644
--- 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);
}
}