forked from enlightenment/enlightenment
tiling: Free allocated memory on error path.
We don't use new_node in this code path. Free before returning. CID 1186205
This commit is contained in:
parent
ca07e7d505
commit
22278399d3
|
@ -92,6 +92,7 @@ tiling_window_tree_add(Window_Tree *root, Window_Tree *parent,
|
||||||
|
|
||||||
if (split_type > TILING_SPLIT_VERTICAL)
|
if (split_type > TILING_SPLIT_VERTICAL)
|
||||||
{
|
{
|
||||||
|
free(new_node);
|
||||||
return root;
|
return root;
|
||||||
}
|
}
|
||||||
else if (!root)
|
else if (!root)
|
||||||
|
|
Loading…
Reference in New Issue