From 320738f8f48ff3d2e10231954b06930546e88c49 Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=A9mie=20Astor?= Date: Fri, 6 Dec 2019 20:59:08 +0100 Subject: [PATCH] :art: Improve modules --- src/lib/modules.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/lib/modules.c b/src/lib/modules.c index b6eab731..5c75eaa1 100644 --- a/src/lib/modules.c +++ b/src/lib/modules.c @@ -12,10 +12,9 @@ #include "ugen.h" #include "gwi.h" #include "emit.h" -#include "shreduler_private.h" static DTOR(basic_dtor) { - free(UGEN(o)->module.gen.data); + xfree(UGEN(o)->module.gen.data); } static TICK(gain_tick) { @@ -187,10 +186,7 @@ static TICK(usrugen_tick) { uu->prep(uu, u->in); uu->shred->pc = 0; shredule(uu->shred->tick->shreduler, uu->shred, 0); - const m_bool ret = uu->shred->info->vm->shreduler->bbq->is_running; - uu->shred->info->vm->shreduler->bbq->is_running = 1; vm_run(uu->shred->info->vm); - uu->shred->info->vm->shreduler->bbq->is_running = ret; uu->shred->reg -= SZ_FLOAT; u->out = *(m_float*)(uu->shred->reg); } @@ -226,7 +222,6 @@ static OP_CHECK(opck_usrugen) { static INSTR(UURet) { shreduler_remove(shred->tick->shreduler, shred, 0); - shred->tick->shreduler->bbq->is_running = 0; } ANN static void code_prepare(const VM_Code code) { -- 2.43.0