]> Nishi Git Mirror - gwion.git/commitdiff
:bug: Fix fptr template
authorfennecdjay <astor.jeremie@wanadoo.fr>
Wed, 18 Sep 2019 21:23:34 +0000 (23:23 +0200)
committerfennecdjay <astor.jeremie@wanadoo.fr>
Wed, 18 Sep 2019 21:23:34 +0000 (23:23 +0200)
src/parse/check.c

index 42b3758307dd5bea3250b21535843ab921640619..fc3fc8f28b3922a922b4ce4653bd4b702a49fdd4 100644 (file)
@@ -587,8 +587,8 @@ CHECK_BO(check_call(env, exp))
       if(!value && m_func) {
         map_set(&v->owner->info->type->map, (vtype)sym, (vtype)actual_type(m_func->value_ref->type));
       }
-    }
-    free_fptr_def(env->gwion->mp, fptr);
+    } else if(!nspc_lookup_value1(v->owner, sym))
+      free_fptr_def(env->gwion->mp, fptr); // ???? related
   }
   } else {
     for(m_uint i = 0; i < v->offset + 1; ++i) {