diff options
Diffstat (limited to 'src/3rdparty')
-rw-r--r-- | src/3rdparty/squirrel/squirrel/sqstate.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/3rdparty/squirrel/squirrel/sqstate.cpp b/src/3rdparty/squirrel/squirrel/sqstate.cpp index 553262543..52cea8a4c 100644 --- a/src/3rdparty/squirrel/squirrel/sqstate.cpp +++ b/src/3rdparty/squirrel/squirrel/sqstate.cpp @@ -189,6 +189,7 @@ SQSharedState::~SQSharedState() SQCollectable *t = _gc_chain; SQCollectable *nx = NULL; while(t) { + t->UnMark(); t->_uiRef++; t->Finalize(); nx = t->_next; @@ -198,7 +199,7 @@ SQSharedState::~SQSharedState() } // assert(_gc_chain==NULL); //just to proove a theory while(_gc_chain){ - _gc_chain->_uiRef++; + _gc_chain->_uiRef--; _gc_chain->Release(); } #endif |