]> git.sur5r.net Git - i3/i3/blobdiff - src/load_layout.c
Ensure that the "border" command uses logical pixels.
[i3/i3] / src / load_layout.c
index 9856d07851be72c8c0779f9cc99b3efb73cdcb4c..173e573b775f0cb9090a712f125d0ac4b9f3826b 100644 (file)
@@ -87,6 +87,7 @@ static int json_end_map(void *ctx) {
                 Match *match = TAILQ_FIRST(&(json_node->swallow_head));
                 TAILQ_REMOVE(&(json_node->swallow_head), match, matches);
                 match_free(match);
+                free(match);
             }
         }
 
@@ -640,8 +641,11 @@ void tree_append_json(Con *con, const char *filename, char **errormsg) {
 
     setlocale(LC_NUMERIC, "");
     yajl_complete_parse(hand);
+    yajl_free(hand);
+    yajl_gen_free(g);
 
     fclose(f);
+    free(buf);
     if (to_focus)
         con_focus(to_focus);
 }