Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Bug 759788: hold a strong ref to the nsPluginInstanceOwner in DoStopP…

…lugin to avoid crashes, r=bsmedberg, a=akeybl
  • Loading branch information...
commit aa01dcd3fe75a2d8c77339b71fde4de287f8abd1 1 parent 05b9124
@MatsPalmgren MatsPalmgren authored
Showing with 1 addition and 0 deletions.
  1. +1 −0  content/base/src/nsObjectLoadingContent.cpp
View
1  content/base/src/nsObjectLoadingContent.cpp
@@ -2051,6 +2051,7 @@ nsObjectLoadingContent::DoStopPlugin(nsPluginInstanceOwner* aInstanceOwner,
}
mIsStopping = true;
+ nsRefPtr<nsPluginInstanceOwner> kungFuDeathGrip(aInstanceOwner);
nsRefPtr<nsNPAPIPluginInstance> inst;
aInstanceOwner->GetInstance(getter_AddRefs(inst));
if (inst) {
Please sign in to comment.
Something went wrong with that request. Please try again.