diff options
author | Campbell Barton <ideasman42@gmail.com> | 2014-02-13 02:49:00 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2014-02-13 02:49:00 +0400 |
commit | b61c6e0f4f8b22500de665529465268d52e61953 (patch) | |
tree | 8a17f541f5053afb7470c551c729472693671c7b /source/blender/editors/interface/interface.c | |
parent | 4c21e2b3825ef21e29f179584109a7974a185f3d (diff) |
UI: remove unused freestr
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; } |