diff options
Diffstat (limited to 'source/blender/editors/interface/interface.c')
-rw-r--r-- | source/blender/editors/interface/interface.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/source/blender/editors/interface/interface.c b/source/blender/editors/interface/interface.c index ebcd372ec94..64b25fe11d7 100644 --- a/source/blender/editors/interface/interface.c +++ b/source/blender/editors/interface/interface.c @@ -3114,7 +3114,7 @@ static uiBut *ui_def_but_rna(uiBlock *block, int type, int retval, const char *s { const PropertyType proptype = RNA_property_type(prop); uiBut *but; - int freestr = 0, icon = 0; + int icon = 0; uiMenuCreateFunc func = NULL; if (ELEM3(type, COLOR, HSVCIRCLE, HSVCUBE)) { @@ -3254,10 +3254,6 @@ static uiBut *ui_def_but_rna(uiBlock *block, int type, int retval, const char *s but->poin = (char *)but; } - if (freestr) { - MEM_freeN((void *)str); - } - return but; } |