Permalink
Browse files

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

…lugin to avoid crashes, r=bsmedberg, a=akeybl
  • Loading branch information...
1 parent 05b9124 commit aa01dcd3fe75a2d8c77339b71fde4de287f8abd1 @MatsPalmgren MatsPalmgren committed May 31, 2012
Showing with 1 addition and 0 deletions.
  1. +1 −0 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) {

0 comments on commit aa01dcd

Please sign in to comment.