Skip to content
  • George Kiagiadakis's avatar
    wplua: ref closure before invalidating it · 4e3ca5dc
    George Kiagiadakis authored
    invalidation may destroy the closure and this will trigger
    _wplua_closure_finalize(), which will remove the closure from the
    array while the original code is also trying to do the same
    
    if we destroy the closure after it has been removed from the
    array, _wplua_closure_finalize() will not remove anything and
    will continue happily
    4e3ca5dc