Skip to content

Commit

Permalink
Merge pull request #1464 from joshthecoder/timob-7712
Browse files Browse the repository at this point in the history
[TIMOB-7712] V8: When backing out of an application a crash occurs during nativeDispose.
  • Loading branch information
billdawson committed Feb 21, 2012
2 parents e68090e + 5484554 commit 6a1b373
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion android/runtime/v8/src/native/V8Runtime.cpp
Expand Up @@ -261,7 +261,8 @@ JNIEXPORT void JNICALL Java_org_appcelerator_kroll_runtime_v8_V8Runtime_nativeDi
// WrappedContext is simply a C++ wrapper for the V8 Context object,
// and is used to expose the Context to javascript. See ScriptsModule for
// implementation details
WrappedContext *wrappedContext = NativeObject::Unwrap<WrappedContext>(moduleContext->ToObject());
WrappedContext *wrappedContext = WrappedContext::Unwrap(moduleContext->ToObject());
ASSERT(wrappedContext != NULL);

// Detach each context's global object, and dispose the context
wrappedContext->GetV8Context()->DetachGlobal();
Expand Down

0 comments on commit 6a1b373

Please sign in to comment.