Bugfix: free incomplete containers when JSON parsing fails

related to #2755
This commit is contained in:
Michael Stapelberg
2017-09-13 16:39:13 +02:00
parent d35de66f1e
commit f120a9d929
5 changed files with 135 additions and 18 deletions

View File

@ -25,6 +25,12 @@ Con *con_new_skeleton(Con *parent, i3Window *window);
*/
Con *con_new(Con *parent, i3Window *window);
/**
* Frees the specified container.
*
*/
void con_free(Con *con);
/**
* Sets input focus to the given container. Will be updated in X11 in the next
* run of x_push_changes().