Permalink
Browse files

Merge pull request #182 from dawgfoto/RefactorTLSGC

RefactorTLSGC memory leak fixup
  • Loading branch information...
2 parents 1a8a0b9 + 315f308 commit 4c011b3f37a8dfacb7372d50746ed8ca2dd2e28c @schveiguy schveiguy committed Mar 20, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/core/thread.d
View
@@ -19,8 +19,6 @@ module core.thread;
public import core.time; // for Duration
static import rt.tlsgc;
-//import core.stdc.stdio;
-
// this should be true for most architectures
version = StackGrowsDown;
@@ -780,6 +778,8 @@ class Thread
{
m_tmach = m_tmach.init;
}
+ rt.tlsgc.destroy( m_tlsgcdata );
+ m_tlsgcdata = null;
}

0 comments on commit 4c011b3

Please sign in to comment.