From: fennecdjay Date: Tue, 10 Sep 2019 20:48:06 +0000 (+0200) Subject: :bug: Fix freearg_dottmpl X-Git-Tag: nightly~2223 X-Git-Url: http://10.10.0.4:5575/?a=commitdiff_plain;h=97afa209a5870e39d3c45dd826dea0be84ab989b;p=gwion.git :bug: Fix freearg_dottmpl --- diff --git a/src/lib/func.c b/src/lib/func.c index 7d34c9dd..dde379b3 100644 --- a/src/lib/func.c +++ b/src/lib/func.c @@ -292,7 +292,8 @@ static FREEARG(freearg_xork) { static FREEARG(freearg_dottmpl) { struct dottmpl_ *dt = (struct dottmpl_*)instr->m_val; - free_type_list(((Gwion)gwion)->mp, dt->tl); + if(dt->tl) + free_type_list(((Gwion)gwion)->mp, dt->tl); mp_free(((Gwion)gwion)->mp, dottmpl, dt); }