mirror of
https://github.com/janet-lang/janet
synced 2025-01-13 00:50:26 +00:00
Fix when clib is not pointer type.
This commit is contained in:
parent
e3e485285b
commit
94c19575b1
@ -389,7 +389,6 @@ JANET_CORE_FN(janet_core_native_close,
|
|||||||
if (anative->closed) janet_panic("native object already closed");
|
if (anative->closed) janet_panic("native object already closed");
|
||||||
anative->closed = 1;
|
anative->closed = 1;
|
||||||
free_clib(anative->clib);
|
free_clib(anative->clib);
|
||||||
anative->clib = NULL;
|
|
||||||
return janet_wrap_nil();
|
return janet_wrap_nil();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user