just use REALLOC... no point doing yet another check :)

SVN revision: 5627
This commit is contained in:
Carsten Haitzler 2001-11-04 23:13:31 +00:00
parent 8617fb8112
commit 5665ed7023
1 changed files with 1 additions and 4 deletions

View File

@ -134,10 +134,7 @@ ecore_add_child(Window win, Window child)
return;
}
xid->children_num++;
if (!xid->children)
xid->children = NEW(Window, xid->children_num);
else
REALLOC(xid->children, Window, xid->children_num);
REALLOC(xid->children, Window, xid->children_num);
xid->children[xid->children_num - 1] = child;
}
xid = ecore_validate_xid(child);