mirror of
https://gitlab.freedesktop.org/plymouth/plymouth.git
synced 2026-05-08 08:58:05 +02:00
[region] Remove element only after processing
Now that we cannot rely on the next_node element. We must finish processing the entry before removing it. Easiest way is to recurse and remove after return.
This commit is contained in:
parent
b7c34f1857
commit
9df80dc483
1 changed files with 2 additions and 1 deletions
|
|
@ -283,9 +283,10 @@ merge_rectangle_with_sub_list (ply_region_t *region,
|
|||
* NNNNNNN
|
||||
*/
|
||||
case PLY_RECTANGLE_OVERLAP_ALL_EDGES:
|
||||
merge_rectangle_with_sub_list (region, new_area, next_node);
|
||||
free (old_area);
|
||||
ply_list_remove_node (region->rectangle_list, node);
|
||||
break;
|
||||
return;
|
||||
|
||||
/* NNN We need to split the new rectangle into
|
||||
* ONNNO two rectangles: the top and bottom row of Ns
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue