From: fennecdjay Date: Mon, 29 May 2023 19:37:32 +0000 (+0200) Subject: :bug: win fix? (use a define) X-Git-Tag: nightly~152 X-Git-Url: http://10.10.0.4:5575/?a=commitdiff_plain;h=06fc35a0db471f84f3ef7749c0978257ccef3439;p=gwion.git :bug: win fix? (use a define) --- diff --git a/src/env/nspc.c b/src/env/nspc.c index f41291f4..6d6a87cd 100644 --- a/src/env/nspc.c +++ b/src/env/nspc.c @@ -19,7 +19,7 @@ static inline void _free_nspc_value(const Nspc a, const Value v, Gwion gwion) { const m_bit *ptr = is_static ? a->class_data + v->from->offset : (m_bit*)v->d.ptr; - anytype_release(gwion->vm->cleaner_shred, v->type, ptr); + if(ptr) anytype_release(gwion->vm->cleaner_shred, v->type, ptr); value_remref(v, gwion); }