Fix regression that Blender crashes on startup if UI translation is enabled, it was mistake in rB50b2c78ad8b6.
This commit is contained in:
parent
db172c1a98
commit
69fb332709
Notes:
blender-bot
2023-02-14 11:09:49 +01:00
Referenced by issue #38708, Blender crash at start
|
@ -1283,8 +1283,8 @@ void RNA_property_enum_items_gettexted(bContext *C, PointerRNA *ptr, PropertyRNA
|
|||
}
|
||||
}
|
||||
|
||||
nitem = MEM_mallocN(sizeof(EnumPropertyItem) * tot + 1, "enum_items_gettexted");
|
||||
memcpy(nitem, item, sizeof(EnumPropertyItem) * tot + 1);
|
||||
nitem = MEM_mallocN(sizeof(EnumPropertyItem) * (tot + 1), "enum_items_gettexted");
|
||||
memcpy(nitem, item, sizeof(EnumPropertyItem) * (tot + 1));
|
||||
|
||||
*r_free = true;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue