diff options
author | Drew DeVault <sir@cmpwn.com> | 2015-11-27 22:31:22 -0500 |
---|---|---|
committer | Drew DeVault <sir@cmpwn.com> | 2015-12-05 17:35:41 -0500 |
commit | e39f846247c639ed1194ffeaa460acf6b7900c2c (patch) | |
tree | fc170e79bae6d446871c399418a109d7996252f9 /wayland | |
parent | Merge pull request #295 from christophgysin/lib (diff) | |
download | sway-e39f846247c639ed1194ffeaa460acf6b7900c2c.tar.gz sway-e39f846247c639ed1194ffeaa460acf6b7900c2c.tar.zst sway-e39f846247c639ed1194ffeaa460acf6b7900c2c.zip |
Free outputs on registry teardown
Diffstat (limited to 'wayland')
-rw-r--r-- | wayland/registry.c | 4 |
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 @@ | |||
3 | #include <string.h> | 3 | #include <string.h> |
4 | #include "wayland-desktop-shell-client-protocol.h" | 4 | #include "wayland-desktop-shell-client-protocol.h" |
5 | #include "client/registry.h" | 5 | #include "client/registry.h" |
6 | #include "stringop.h" | ||
6 | #include "log.h" | 7 | #include "log.h" |
7 | 8 | ||
8 | static void display_handle_mode(void *data, struct wl_output *wl_output, | 9 | static void display_handle_mode(void *data, struct wl_output *wl_output, |
@@ -110,7 +111,6 @@ void registry_teardown(struct registry *registry) { | |||
110 | wl_display_disconnect(registry->display); | 111 | wl_display_disconnect(registry->display); |
111 | } | 112 | } |
112 | if (registry->outputs) { | 113 | if (registry->outputs) { |
113 | // TODO: Free the outputs themselves | 114 | free_flat_list(registry->outputs); |
114 | list_free(registry->outputs); | ||
115 | } | 115 | } |
116 | } | 116 | } |