Don't leak listeners in embedder when guest is destroyed

This commit is contained in:
Cheng Zhao 2014-12-17 20:44:15 -08:00
parent a26091e485
commit da54ac5f55
3 changed files with 5 additions and 3 deletions

View file

@ -50,7 +50,6 @@ class WebViewImpl
# heard back from createGuest yet. We will not reset the flag in this case so
# that we don't end up allocating a second guest.
if @guestInstanceId
# FIXME
guestViewInternal.destroyGuest @guestInstanceId
@guestInstanceId = undefined
@beforeFirstNavigation = true