Chromium Code Reviews| Index: runtime/vm/thread.cc |
| diff --git a/runtime/vm/thread.cc b/runtime/vm/thread.cc |
| index 260f59088ae169ec397713235d46287c90f0e43b..18c062dc90744f19bc8473e7fce41b0e72626801 100644 |
| --- a/runtime/vm/thread.cc |
| +++ b/runtime/vm/thread.cc |
| @@ -93,9 +93,9 @@ void Thread::EnsureInit() { |
| void Thread::CleanUp() { |
| Thread* current = Current(); |
| if (current != NULL) { |
| + SetCurrent(NULL); |
| delete current; |
|
Ivan Posva
2015/08/21 03:23:56
Are we sure the destructor will not touch anything
koda
2015/08/21 17:15:42
I can't guarantee it won't, but if it did, we'd al
|
| } |
| - SetCurrent(NULL); |
| } |
| #endif |