diff options
author | benoit-germain <bnt.germain@gmail.com> | 2012-08-10 23:08:55 +0300 |
---|---|---|
committer | benoit-germain <bnt.germain@gmail.com> | 2012-08-10 23:08:55 +0300 |
commit | 1926ff0589dad20cada2af757ebbf1b4dc20247d (patch) | |
tree | 9e1492edf14ad2511013a66ef495960eb2c3b230 /src/lanes.c | |
parent | 06856ef8b225208a21abf313aaf51905352c6e9d (diff) | |
download | lanes-1926ff0589dad20cada2af757ebbf1b4dc20247d.tar.gz lanes-1926ff0589dad20cada2af757ebbf1b4dc20247d.tar.bz2 lanes-1926ff0589dad20cada2af757ebbf1b4dc20247d.zip |
Good crash fix this time, part 1
Diffstat (limited to 'src/lanes.c')
-rw-r--r-- | src/lanes.c | 2 |
1 files changed, 1 insertions, 1 deletions
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) | |||
823 | /* Clean associated structures in the keeper state. | 823 | /* Clean associated structures in the keeper state. |
824 | */ | 824 | */ |
825 | K= keeper_acquire(s); | 825 | K= keeper_acquire(s); |
826 | if( K) // can be NULL if this happens during main state shutdown (lanes is GC'ed -> no keepers -> no need to cleanup) | 826 | if( K && K->L) // can be NULL if this happens during main state shutdown (lanes is GC'ed -> no keepers -> no need to cleanup) |
827 | { | 827 | { |
828 | keeper_call( K->L, "clear", L, s, 0 ); | 828 | keeper_call( K->L, "clear", L, s, 0 ); |
829 | keeper_release(K); | 829 | keeper_release(K); |