2014-01-04 18:22 UTC+0100 Przemyslaw Czerpak (druzus/at/poczta.onet.pl)

* src/vm/hvm.c
    ! release TSD handle in thread static destructors.
      It should fix problem reported by Lorenzo.
This commit is contained in:
Przemysław Czerpak
2014-01-04 18:22:04 +01:00
parent af3b2f9cbd
commit 9fc0cb74b7
2 changed files with 6 additions and 3 deletions

View File

@@ -6482,9 +6482,7 @@ static void hb_vmTSVRefClear( void * value )
if( HB_IS_COMPLEX( &( ( PHB_TSVREF ) value )->source ) )
hb_itemClear( &( ( PHB_TSVREF ) value )->source );
pItem = ( PHB_ITEM ) hb_stackTestTSD( &( ( PHB_TSVREF ) value )->threadData );
if( pItem && HB_IS_COMPLEX( pItem ) )
hb_itemClear( pItem );
hb_stackReleaseTSD( &( ( PHB_TSVREF ) value )->threadData );
hb_xfree( value );
}