From: Jérémie Astor Date: Thu, 3 Dec 2020 05:54:21 +0000 (+0100) Subject: :bug: Fix modend bug X-Git-Tag: nightly~1137 X-Git-Url: http://10.10.0.4:5575/?a=commitdiff_plain;h=0d5dbe0ddac55bf521fb89615be345b2a45e52f0;p=gwion.git :bug: Fix modend bug --- diff --git a/src/plug.c b/src/plug.c index 81080c02..32e6c112 100644 --- a/src/plug.c +++ b/src/plug.c @@ -95,7 +95,7 @@ void free_plug(const struct Gwion_ *gwion) { for(m_uint i = 0; i < map_size(map); ++i) { const Plug plug = (Plug)VVAL(map, i); const modend end = DLSYM(plug->dl, modend, GWMODEND_NAME); - if(end) + if(end && plg->self) end(gwion, plug->self); free((m_str)VKEY(map, i)); DLCLOSE(plug->dl);