UI: remove unused freestr
authorCampbell Barton <ideasman42@gmail.com>
Wed, 12 Feb 2014 22:49:00 +0000 (09:49 +1100)
committerCampbell Barton <ideasman42@gmail.com>
Wed, 12 Feb 2014 22:49:00 +0000 (09:49 +1100)
source/blender/editors/interface/interface.c

index ebcd372ec9425dd15e59ddc19782f96ab65b2fa9..64b25fe11d74d2c88e62f593d2bf2200e5e45ce4 100644 (file)
@@ -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;
 }