From 06fc35a0db471f84f3ef7749c0978257ccef3439 Mon Sep 17 00:00:00 2001 From: fennecdjay Date: Mon, 29 May 2023 21:37:32 +0200 Subject: [PATCH] :bug: win fix? (use a define) --- src/env/nspc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); } -- 2.43.0