i3 - improved tiling WM


Set con window to NULL on tree_close

Patch status: merged

Patch by Tony Crisci

Long description:

Prevents invalid reads on the freed window struct.

To apply this patch, use:
curl http://cr.i3wm.org/patch/455/raw.patch | git am

b/src/tree.c

14
@@ -260,7 +260,7 @@ bool tree_close(Con *con, kill_window_t kill_window, bool dont_kill_parent, bool
15
         FREE(con->window->class_class);
16
         FREE(con->window->class_instance);
17
         i3string_free(con->window->name);
18
-        free(con->window);
19
+        FREE(con->window);
20
     }
21
 
22
     Con *ws = con_get_workspace(con);