344701 Leaking nsMacWindow objects for top-level windows. r=josh

This commit is contained in:
mark%moxienet.com 2006-07-14 18:27:44 +00:00
Родитель feadb93dca
Коммит 257a794a5a
1 изменённых файлов: 3 добавлений и 3 удалений

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

@ -576,8 +576,8 @@ static Boolean we_are_front_process()
//-------------------------------------------------------------------------
NS_IMETHODIMP nsWindow::SetFocus(PRBool aRaise)
{
nsIWidget* top;
nsToolkit::GetTopWidget(mWindowPtr, &top);
nsCOMPtr<nsIWidget> top;
nsToolkit::GetTopWidget(mWindowPtr, getter_AddRefs(top));
if (top) {
nsCOMPtr<nsPIWidgetMac> topMac = do_QueryInterface(top);
@ -2312,7 +2312,7 @@ NS_IMETHODIMP nsWindow::GetAttention(PRInt32 aCycleCount)
gNMRec.nmSound = NULL; // No alert sound, see bug 307323
gNMRec.nmStr = NULL; // No alert/window so no text
gNMRec.nmResp = NULL; // No response proc, use the default behavior
gNMRec.nmRefCon = NULL;
gNMRec.nmRefCon = 0;
if (::NMInstall(&gNMRec) == noErr)
gNotificationInstalled = true;