diff options
Diffstat (limited to 'mono/metadata/threads.c')
-rw-r--r-- | mono/metadata/threads.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/mono/metadata/threads.c b/mono/metadata/threads.c index 5bca4f0ab73..e5ab853cd3c 100644 --- a/mono/metadata/threads.c +++ b/mono/metadata/threads.c @@ -3008,6 +3008,7 @@ thread_detach (MonoThreadInfo *info) * the thread */ g_assert (info); + g_assert (mono_thread_info_is_current (info)); if (!mono_thread_info_try_get_internal_thread_gchandle (info, &gchandle)) return; @@ -3015,8 +3016,6 @@ thread_detach (MonoThreadInfo *info) internal = (MonoInternalThread*) mono_gchandle_get_target (gchandle); g_assert (internal); - mono_gchandle_free (gchandle); - mono_thread_detach_internal (internal); } |