fix mzrt_thread_stub refcount

This commit is contained in:
Kevin Tew 2010-08-03 15:40:44 -06:00
parent bb72d26b93
commit 637a8d9f84

View File

@ -170,7 +170,7 @@ void *mzrt_thread_stub(void *data){
res = start_proc(start_proc_data);
if (proc_thread_self->refcount)
if (!--proc_thread_self->refcount)
free(proc_thread_self);
scheme_done_os_thread();