зеркало из https://github.com/mozilla/pjs.git
Fix for 80105 -- adding a null-check before release, r=peterl, sr=attinasi, a=chofmann
This commit is contained in:
Родитель
ac2c6d9ba3
Коммит
dd7fa38258
|
@ -951,7 +951,7 @@ pluginInstanceOwner :: ~pluginInstanceOwner()
|
||||||
if(host)
|
if(host)
|
||||||
host->StopPluginInstance(mInstance);
|
host->StopPluginInstance(mInstance);
|
||||||
}
|
}
|
||||||
NS_RELEASE(mInstance);
|
NS_IF_RELEASE(mInstance);
|
||||||
}
|
}
|
||||||
|
|
||||||
mWindow = nsnull;
|
mWindow = nsnull;
|
||||||
|
|
|
@ -951,7 +951,7 @@ pluginInstanceOwner :: ~pluginInstanceOwner()
|
||||||
if(host)
|
if(host)
|
||||||
host->StopPluginInstance(mInstance);
|
host->StopPluginInstance(mInstance);
|
||||||
}
|
}
|
||||||
NS_RELEASE(mInstance);
|
NS_IF_RELEASE(mInstance);
|
||||||
}
|
}
|
||||||
|
|
||||||
mWindow = nsnull;
|
mWindow = nsnull;
|
||||||
|
|
Загрузка…
Ссылка в новой задаче