mirror of
https://github.com/vale981/bspwm
synced 2025-03-06 02:01:42 -05:00
Don't return a freed node from insert_node
This commit is contained in:
parent
5d01b48a04
commit
0a09f5e4fa
1 changed files with 1 additions and 0 deletions
1
tree.c
1
tree.c
|
@ -288,6 +288,7 @@ node_t *insert_node(monitor_t *m, desktop_t *d, node_t *n, node_t *f)
|
|||
}
|
||||
n->parent = p;
|
||||
free(f);
|
||||
f = NULL;
|
||||
} else {
|
||||
node_t *c = make_node(XCB_NONE);
|
||||
node_t *p = f->parent;
|
||||
|
|
Loading…
Add table
Reference in a new issue