From 1926ff0589dad20cada2af757ebbf1b4dc20247d Mon Sep 17 00:00:00 2001 From: benoit-germain Date: Fri, 10 Aug 2012 23:08:55 +0300 Subject: Good crash fix this time, part 1 --- src/lanes.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lanes.c b/src/lanes.c index 262a497..360990a 100644 --- a/src/lanes.c +++ b/src/lanes.c @@ -823,7 +823,7 @@ static void linda_id( lua_State *L, char const * const which) /* Clean associated structures in the keeper state. */ K= keeper_acquire(s); - if( K) // can be NULL if this happens during main state shutdown (lanes is GC'ed -> no keepers -> no need to cleanup) + if( K && K->L) // can be NULL if this happens during main state shutdown (lanes is GC'ed -> no keepers -> no need to cleanup) { keeper_call( K->L, "clear", L, s, 0 ); keeper_release(K); -- cgit v1.2.3-55-g6feb