]> git.sur5r.net Git - i3/i3/commitdiff
fix memleak: free struct Window members
authorMichael Stapelberg <michael@stapelberg.de>
Tue, 4 Jan 2011 21:39:45 +0000 (22:39 +0100)
committerMichael Stapelberg <michael@stapelberg.de>
Tue, 4 Jan 2011 21:39:45 +0000 (22:39 +0100)
src/tree.c

index 5f2c35801b2893917f9fb223f41a1ec339e153e2..d5305d5bfbd26d5f14bafbe822474278a3d7d830 100644 (file)
@@ -193,6 +193,10 @@ void tree_close(Con *con, bool kill_window, bool dont_kill_parent) {
             /* TODO: client_unmap to set state to withdrawn */
 
         }
+        FREE(con->window->class_class);
+        FREE(con->window->class_instance);
+        FREE(con->window->name_x);
+        FREE(con->window->name_json);
         free(con->window);
     }