From 0d5dbe0ddac55bf521fb89615be345b2a45e52f0 Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=A9mie=20Astor?= Date: Thu, 3 Dec 2020 06:54:21 +0100 Subject: [PATCH] :bug: Fix modend bug --- src/plug.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.43.0