From 82f9ed2e394ae63e5da33eea16604a7aaa0d6f44 Mon Sep 17 00:00:00 2001 From: fennecdjay Date: Sun, 13 Oct 2019 21:54:10 +0200 Subject: [PATCH] :art: Update value --- src/oo/value.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/oo/value.c b/src/oo/value.c index f069b3b3..9007e86c 100644 --- a/src/oo/value.c +++ b/src/oo/value.c @@ -14,7 +14,7 @@ ANN static void free_value(Value a, Gwion gwion) { !(GET_FLAG(a, enum) && GET_FLAG(a, builtin) && a->from->owner_class) && isa(t, gwion->type[et_object]) < 0) _mp_free(gwion->mp, t->size, a->d.ptr); - if(GET_FLAG(a, enum) && GET_FLAG(a, dtor)) + else if(GET_FLAG(a, enum) && GET_FLAG(a, dtor)) xfree(a->d.ptr); if(is_class(gwion, t)) REM_REF(t, gwion) -- 2.43.0