зеркало из https://github.com/mozilla/gecko-dev.git
Fix refcounting of some event objects to not leak. Bug 342810, investigationby Jim Mathies <jmathies@mozilla.com>, r+sr=jst
This commit is contained in:
Родитель
54db155716
Коммит
e8cd3eb3c4
|
@ -139,7 +139,8 @@ private:
|
|||
public:
|
||||
// locals
|
||||
PFNWP GetWindowProc();
|
||||
PluginWindowEvent * GetPluginWindowEvent(HWND aWnd, ULONG aMsg, MPARAM mp1, MPARAM mp2);
|
||||
already_AddRefed<nsIRunnable> GetPluginWindowEvent(HWND aWnd, ULONG aMsg,
|
||||
MPARAM mp1, MPARAM mp2);
|
||||
|
||||
private:
|
||||
PFNWP mPluginWinProc;
|
||||
|
@ -271,7 +272,7 @@ NS_IMETHODIMP PluginWindowEvent::Run()
|
|||
return NS_OK;
|
||||
}
|
||||
|
||||
PluginWindowEvent*
|
||||
already_AddRefed<nsIRunnable>
|
||||
nsPluginNativeWindowOS2::GetPluginWindowEvent(HWND aWnd, ULONG aMsg, MPARAM aMp1, MPARAM aMp2)
|
||||
{
|
||||
if (!mWeakRef) {
|
||||
|
|
|
@ -145,7 +145,9 @@ public:
|
|||
// locals
|
||||
WNDPROC GetPrevWindowProc();
|
||||
WNDPROC GetWindowProc();
|
||||
PluginWindowEvent * GetPluginWindowEvent(HWND aWnd, UINT aMsg, WPARAM aWParam, LPARAM aLParam);
|
||||
already_AddRefed<nsIRunnable> GetPluginWindowEvent(HWND aWnd, UINT aMsg,
|
||||
WPARAM aWParam,
|
||||
LPARAM aLParam);
|
||||
|
||||
private:
|
||||
WNDPROC mPrevWinProc;
|
||||
|
@ -437,7 +439,7 @@ NS_IMETHODIMP PluginWindowEvent::Run()
|
|||
return NS_OK;
|
||||
}
|
||||
|
||||
PluginWindowEvent*
|
||||
already_AddRefed<nsIRunnable>
|
||||
nsPluginNativeWindowWin::GetPluginWindowEvent(HWND aWnd, UINT aMsg, WPARAM aWParam, LPARAM aLParam)
|
||||
{
|
||||
if (!mWeakRef) {
|
||||
|
|
Загрузка…
Ссылка в новой задаче