1
0
Fork 0

fix for issue #150 patch

This commit is contained in:
Jan Steemann 2012-09-04 23:04:13 +02:00
parent a667f633d5
commit 39dbfbff7c
1 changed files with 1 additions and 1 deletions

View File

@ -269,7 +269,7 @@ void ApplicationV8::collectGarbage () {
_dirtyContexts.pop_back();
}
if (context == 0 && ! gotSignal) {
if (context == 0 && ! gotSignal && ! _freeContexts.empty()) {
// we did not find a dirty context
// so we'll pop one of the free contexts and clean it up
context = _freeContexts.back();