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