зеркало из https://github.com/mozilla/gecko-dev.git
Fix nsXBLBinding leaks. r=hyatt
This commit is contained in:
Родитель
6e02487370
Коммит
39573f4597
|
@ -425,6 +425,8 @@ nsXBLBinding::InstallEventHandlers(nsIContent* aBoundElement)
|
||||||
receiver->AddEventListener(type, (nsIDOMMouseListener*)handler, useCapture);
|
receiver->AddEventListener(type, (nsIDOMMouseListener*)handler, useCapture);
|
||||||
else
|
else
|
||||||
receiver->AddEventListener(type, (nsIDOMKeyListener*)handler, useCapture);
|
receiver->AddEventListener(type, (nsIDOMKeyListener*)handler, useCapture);
|
||||||
|
|
||||||
|
NS_RELEASE(handler);
|
||||||
}
|
}
|
||||||
|
|
||||||
// XXX Call AddScriptEventListener for other IID types
|
// XXX Call AddScriptEventListener for other IID types
|
||||||
|
|
|
@ -425,6 +425,8 @@ nsXBLBinding::InstallEventHandlers(nsIContent* aBoundElement)
|
||||||
receiver->AddEventListener(type, (nsIDOMMouseListener*)handler, useCapture);
|
receiver->AddEventListener(type, (nsIDOMMouseListener*)handler, useCapture);
|
||||||
else
|
else
|
||||||
receiver->AddEventListener(type, (nsIDOMKeyListener*)handler, useCapture);
|
receiver->AddEventListener(type, (nsIDOMKeyListener*)handler, useCapture);
|
||||||
|
|
||||||
|
NS_RELEASE(handler);
|
||||||
}
|
}
|
||||||
|
|
||||||
// XXX Call AddScriptEventListener for other IID types
|
// XXX Call AddScriptEventListener for other IID types
|
||||||
|
|
Загрузка…
Ссылка в новой задаче