aboutsummaryrefslogtreecommitdiff
path: root/sway/container.c
diff options
context:
space:
mode:
Diffstat (limited to 'sway/container.c')
-rw-r--r--sway/container.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/sway/container.c b/sway/container.c
index 1f9b250f..3158b8b0 100644
--- a/sway/container.c
+++ b/sway/container.c
@@ -31,6 +31,9 @@ static void free_swayc(swayc_t *c) {
}
remove_child(c->parent, c);
}
+ if (c->name) {
+ free(c->name);
+ }
free(c);
}
@@ -43,9 +46,9 @@ static void add_output_widths(swayc_t *container, void *_width) {
}
swayc_t *new_output(wlc_handle handle) {
- sway_log(L_DEBUG, "Added output %d", handle);
const struct wlc_size* size = wlc_output_get_resolution(handle);
const char *name = wlc_output_get_name(handle);
+ sway_log(L_DEBUG, "Added output %d %s", handle, name);
swayc_t *output = new_swayc(C_OUTPUT);
output->width = size->w;