From: fennecdjay Date: Wed, 18 Sep 2019 21:23:34 +0000 (+0200) Subject: :bug: Fix fptr template X-Git-Tag: nightly~2216^2~4 X-Git-Url: http://10.10.0.4:5575/?a=commitdiff_plain;h=62ef101b782e4331ef4f31f426a992ef123b52d7;p=gwion.git :bug: Fix fptr template --- diff --git a/src/parse/check.c b/src/parse/check.c index 42b37583..fc3fc8f2 100644 --- a/src/parse/check.c +++ b/src/parse/check.c @@ -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) {