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:
bzbarsky@mit.edu 2007-06-07 14:41:46 -07:00
Родитель 1b384c4e7e
Коммит 632ea0c53e
2 изменённых файлов: 7 добавлений и 4 удалений

Просмотреть файл

@ -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) {