[Bf-blender-cvs] [b61c6e0] master: UI: remove unused freestr

Campbell Barton noreply at git.blender.org
Thu Feb 13 00:01:20 CET 2014


Commit: b61c6e0f4f8b22500de665529465268d52e61953
Author: Campbell Barton
Date:   Thu Feb 13 09:49:00 2014 +1100
https://developer.blender.org/rBb61c6e0f4f8b22500de665529465268d52e61953

UI: remove unused freestr

===================================================================

M	source/blender/editors/interface/interface.c

===================================================================

diff --git a/source/blender/editors/interface/interface.c b/source/blender/editors/interface/interface.c
index ebcd372..64b25fe 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;
 }




More information about the Bf-blender-cvs mailing list