Changeset View
Changeset View
Standalone View
Standalone View
source/blender/makesrna/intern/rna_define.c
| Show First 20 Lines • Show All 4,734 Lines • ▼ Show 20 Lines | switch (prop->type) { | ||||
| MEM_freeN((void *)sprop->defaultvalue); | MEM_freeN((void *)sprop->defaultvalue); | ||||
| } | } | ||||
| break; | break; | ||||
| } | } | ||||
| default: | default: | ||||
| break; | break; | ||||
| } | } | ||||
| } | } | ||||
| switch (prop->type) { | |||||
| case PROP_ENUM: { | |||||
| EnumPropertyRNA *eprop = (EnumPropertyRNA *)prop; | |||||
| /* Always free order data. */ | |||||
| if (eprop->item_order.indices) { | |||||
| MEM_freeN(eprop->item_order.indices); | |||||
| } | |||||
| break; | |||||
| } | |||||
| default: | |||||
| break; | |||||
| } | |||||
| } | } | ||||
| static void rna_def_property_free(StructOrFunctionRNA *cont_, PropertyRNA *prop) | static void rna_def_property_free(StructOrFunctionRNA *cont_, PropertyRNA *prop) | ||||
| { | { | ||||
| ContainerRNA *cont = cont_; | ContainerRNA *cont = cont_; | ||||
| if (prop->flag_internal & PROP_INTERN_RUNTIME) { | if (prop->flag_internal & PROP_INTERN_RUNTIME) { | ||||
| if (cont->prophash) { | if (cont->prophash) { | ||||
| ▲ Show 20 Lines • Show All 88 Lines • Show Last 20 Lines | |||||