Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulian Eisel <julian@blender.org>2020-04-19 15:36:22 +0300
committerJulian Eisel <julian@blender.org>2020-04-19 15:36:22 +0300
commit3cd147b49ff5052fc4a6d0a512b774776711f685 (patch)
tree6da0526bb2f9aba10eaac69c9df9605b40c948d4 /source/blender/editors/interface/interface_panel.c
parent1f1520a04503d946b7120ddc681282bc2d4b3036 (diff)
Fix T74809: Use after free when merging specific areas
Was incorrectly triggering animation for panels which would be free'd before the animation ended.
Diffstat (limited to 'source/blender/editors/interface/interface_panel.c')
-rw-r--r--source/blender/editors/interface/interface_panel.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/source/blender/editors/interface/interface_panel.c b/source/blender/editors/interface/interface_panel.c
index b8f87a4300c..f824670cc57 100644
--- a/source/blender/editors/interface/interface_panel.c
+++ b/source/blender/editors/interface/interface_panel.c
@@ -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;
}
}