compiler/libec: Fixed warning on CustomAVLTree<T>.root.Find()
authorJerome St-Louis <jerome@ecere.com>
Mon, 9 Jun 2014 19:58:00 +0000 (15:58 -0400)
committerJerome St-Louis <jerome@ecere.com>
Mon, 9 Jun 2014 19:58:00 +0000 (15:58 -0400)
- Always resetting destType on member exps

compiler/bootstrap/libec/bootstrap/pass15.c
compiler/libec/src/pass15.ec

index 8736016..06bc855 100644 (file)
@@ -16263,7 +16263,8 @@ revConvert = __ecereNameSpace__ecere__com__eClass_FindProperty(convertClass, _cl
 }
 }
 }
-if(!exp->__anon1.member.exp->destType)
+if(exp->__anon1.member.exp->destType)
+FreeType(exp->__anon1.member.exp->destType);
 {
 if(method && !method->_class->symbol)
 method->_class->symbol = FindClass(method->_class->fullName);
index 5b248ab..1642e9f 100644 (file)
@@ -10217,7 +10217,9 @@ void ProcessExpressionType(Expression exp)
                   }
                }
 
-               if(!exp.member.exp.destType)
+               //if(!exp.member.exp.destType)
+               if(exp.member.exp.destType)
+                  FreeType(exp.member.exp.destType);
                {
                   if(method && !method._class.symbol)
                      method._class.symbol = FindClass(method._class.fullName);