[region] Free rectangle if empty

Previously we just returned and did not free.
This commit is contained in:
Charlie Brej 2009-11-22 22:27:40 +00:00
parent 3f2e0b1b22
commit fe46fb8803

View file

@ -98,7 +98,10 @@ merge_rectangle_with_sub_list (ply_region_t *region,
{
if (ply_rectangle_is_empty (new_area))
return;
{
free (new_area);
return;
}
while (node != NULL)
{