Fix Lua register* callback list corruption
commitfb28e30fcccc6f762df8298940ffabe219efefb8
authorIlari Liusvaara <ilariliusvaara@welho.com>
Tue, 9 Feb 2021 16:35:00 +0000 (9 18:35 +0200)
committerIlari Liusvaara <ilariliusvaara@welho.com>
Wed, 10 Feb 2021 06:46:08 +0000 (10 08:46 +0200)
tree0c92c0c9e2f9958654a00e666d0e26ed9ee6ad78
parent6fb4e1396d430eaddb458eb5a38a04906924ea83
Fix Lua register* callback list corruption

Turns out nothing was setting the prev pointer on doubly linked list when
creating callback nodes, so Lua GC'ing any node from the middle corrupted
the list, leading to unregister* intermittently failing to actually
unregister the callback.
include/library/lua-base.hpp
src/lua/memory.cpp