Blender Git Commit Log

Git Commits -> Revision 74fa878

Revision 74fa878 by Julian Eisel (master)
April 8, 2020, 21:22 (GMT)
Fix error in UI_butstore_ API

If the `uiButStore` data was freed after the buttons/blocks were updated
from previous instances (see `UI_block_update_from_old()`), e.g. by
delaying that to the "afterfuncs" (`ui_apply_but_funcs_after()`), the
data would get lost. As result, the button pointers that the API is
supposed to keep valid would point to freed memory.

This wasn't an issue so far since the API didn't happen to be used this
way. That changes with the next commit.

Commit Details:

Full Hash: 74fa8787d8640c0856f3192898b8ebeaa0d639ac
Parent Commit: c13aa95
Lines Changed: +2, -2

1 Modified Path:

/source/blender/editors/interface/interface_utils.c (+2, -2) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021