From: Jérémie Astor Date: Mon, 6 Apr 2020 09:21:56 +0000 (+0200) Subject: :art: Improve func cleaning X-Git-Tag: nightly~1710 X-Git-Url: http://10.10.0.4:5575/?a=commitdiff_plain;h=297717af2a0ee6d8449d39b96aa36284fbcea824;p=gwion.git :art: Improve func cleaning --- diff --git a/src/parse/func.c b/src/parse/func.c index 3bc7c7dc..6c78802c 100644 --- a/src/parse/func.c +++ b/src/parse/func.c @@ -5,7 +5,8 @@ #include "gwion.h" ANN static void free_func(Func a, Gwion gwion) { - if(GET_FLAG(a, template) && !GET_FLAG(a, builtin)/* && a->def->d.code*/) +// if(GET_FLAG(a, template) && !GET_FLAG(a, builtin)/* && a->def->d.code*/) + if(GET_FLAG(a, template)) free_func_def(gwion->mp, a->def); if(a->code) REM_REF(a->code, gwion);