Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2014-02-13 02:49:00 +0400
committerCampbell Barton <ideasman42@gmail.com>2014-02-13 02:49:00 +0400
commitb61c6e0f4f8b22500de665529465268d52e61953 (patch)
tree8a17f541f5053afb7470c551c729472693671c7b /source/blender/editors/interface/interface.c
parent4c21e2b3825ef21e29f179584109a7974a185f3d (diff)
UI: remove unused freestr
Diffstat (limited to 'source/blender/editors/interface/interface.c')
-rw-r--r--source/blender/editors/interface/interface.c6
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;
}