Fix refcounting of some event objects to not leak. Bug 342810, investigation
by Jim Mathies <jmathies@mozilla.com>, r+sr=jst git-svn-id: svn://10.0.0.236/trunk@227671 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
parent
c9150291a5
commit
b01c3fd982
@ -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) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user