blender/intern/guardedalloc
Sergey Sharybin 09b9e1e95e Fix T102225: Crash opening menus
Seems to be introduced by 99e5024e97f.

The crash is caused by the difference in the expected alignment
of the `uiPopupMenu` which is 16 bytes and the actual alignment
returned by the `MEM_mallocN()` which is 8 bytes due to the memory
head.

Now made it so that `MEM_new()` can be used for types with any
alignment.

Differential Revision: https://developer.blender.org/D16375
2022-11-03 14:32:04 +01:00
..
cpp File headers: SPDX License migration 2022-02-11 09:14:36 +11:00
intern Cleanup: spelling in comments 2022-11-02 10:18:19 +11:00
test/simpletest File headers: SPDX License migration 2022-02-11 09:14:36 +11:00
tests Cleanup: replace C-style casts with functional casts for numeric types 2022-09-26 09:53:49 +10:00
CMakeLists.txt Build: fix gtest build flags affecting actual library 2022-09-18 11:26:34 +02:00
MEM_guardedalloc.h Fix T102225: Crash opening menus 2022-11-03 14:32:04 +01:00