зеркало из https://github.com/mozilla/gecko-dev.git
fix leak (thanks dbaron!)
This commit is contained in:
Родитель
d6285f6d08
Коммит
d682f264b4
|
@ -157,6 +157,9 @@ nsJARChannel::nsJARChannel()
|
|||
|
||||
nsJARChannel::~nsJARChannel()
|
||||
{
|
||||
// with the exception of certain error cases mJarInput will already be null.
|
||||
NS_IF_RELEASE(mJarInput);
|
||||
|
||||
// release owning reference to the jar handler
|
||||
nsJARProtocolHandler *handler = gJarHandler;
|
||||
NS_RELEASE(handler); // NULL parameter
|
||||
|
|
|
@ -157,6 +157,9 @@ nsJARChannel::nsJARChannel()
|
|||
|
||||
nsJARChannel::~nsJARChannel()
|
||||
{
|
||||
// with the exception of certain error cases mJarInput will already be null.
|
||||
NS_IF_RELEASE(mJarInput);
|
||||
|
||||
// release owning reference to the jar handler
|
||||
nsJARProtocolHandler *handler = gJarHandler;
|
||||
NS_RELEASE(handler); // NULL parameter
|
||||
|
|
Загрузка…
Ссылка в новой задаче