https://bugs.webkit.org/show_bug.cgi?id=127072
Don't autorelease wrapper object (WebProcessPlugInScriptWorld) for InjectedBundleScriptWorld::normalWorld().

Patch by Yongjun Zhang <yongjun_zhang@apple.com> on 2014-01-15
Reviewed by Geoffrey Garen.

In [WKWebProcessPlugInScriptWorld normalWorld], InjectedBundleScriptWorld::normalWorld() returns a static
instance,  autoreleasing its wrapper object could cause a dangling pointer and crash later.

* WebProcess/InjectedBundle/API/Cocoa/WKWebProcessPlugInScriptWorld.mm:
(+[WKWebProcessPlugInScriptWorld normalWorld]):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@162106 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2 files changed