Fix T74809: Use after free when merging specific areas
Was incorrectly triggering animation for panels which would be free'd before the animation ended.
This commit is contained in:
parent
1f1520a045
commit
3cd147b49f
@ -428,7 +428,8 @@ void UI_panel_end(
|
||||
}
|
||||
|
||||
int align = panel_aligned(area, region);
|
||||
if (old_region_ofsx != panel_region_offset_x_get(region, align)) {
|
||||
panel->runtime.region_ofsx = panel_region_offset_x_get(region, align);
|
||||
if (old_region_ofsx != panel->runtime.region_ofsx) {
|
||||
panel->runtime_flag |= PNL_ANIM_ALIGN;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user