зеркало из https://github.com/mozilla/pjs.git
Delete event tap correctly. b=436897 r=josh sr=roc
This commit is contained in:
Родитель
f5e389e009
Коммит
6a9b130b93
|
@ -343,6 +343,10 @@ nsToolkit::UnregisterAllProcessMouseEventHandlers()
|
|||
mEventTapRLS = nsnull;
|
||||
}
|
||||
if (mEventTapPort) {
|
||||
// mEventTapPort must be invalidated as well as released. Otherwise the
|
||||
// event tap doesn't get destroyed until the browser process ends (it
|
||||
// keeps showing up in the list returned by CGGetEventTapList()).
|
||||
CFMachPortInvalidate(mEventTapPort);
|
||||
CFRelease(mEventTapPort);
|
||||
mEventTapPort = nsnull;
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче