prevent leak on tiling insert failure

CID 1379940
This commit is contained in:
Mike Blumenkrantz 2017-08-25 14:47:05 -04:00
parent e707576e81
commit c597ed69fd
1 changed files with 1 additions and 0 deletions

View File

@ -130,6 +130,7 @@ tiling_window_tree_insert(Window_Tree *root, Window_Tree *buddy,
else
{
//make sure this buddy has a client,
if (!buddy->client) free(new_node);
EINA_SAFETY_ON_TRUE_RETURN_VAL(!buddy->client, root);
}