aboutsummaryrefslogtreecommitdiffstats
path: root/sway/list.c
diff options
context:
space:
mode:
authorLibravatar Drew DeVault <sir@cmpwn.com>2015-08-08 17:44:51 -0400
committerLibravatar Drew DeVault <sir@cmpwn.com>2015-08-08 17:44:51 -0400
commit148f59f3a670a7008bc6c2bc07712fd58b1f6e69 (patch)
tree7feeaaac853eb847a49e583882de5be50b1c737b /sway/list.c
parentAdd logging and new windows into layout tree (diff)
downloadsway-148f59f3a670a7008bc6c2bc07712fd58b1f6e69.tar.gz
sway-148f59f3a670a7008bc6c2bc07712fd58b1f6e69.tar.zst
sway-148f59f3a670a7008bc6c2bc07712fd58b1f6e69.zip
Refactor in-memory tree
Diffstat (limited to 'sway/list.c')
-rw-r--r--sway/list.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/sway/list.c b/sway/list.c
index 120cfbcd..82d6c144 100644
--- a/sway/list.c
+++ b/sway/list.c
@@ -12,6 +12,9 @@ list_t *create_list() {
12} 12}
13 13
14void list_free(list_t *list) { 14void list_free(list_t *list) {
15 if (list == NULL) {
16 return;
17 }
15 free(list->items); 18 free(list->items);
16 free(list); 19 free(list);
17} 20}