fix nsIToolkit leak. r=smfr

git-svn-id: svn://10.0.0.236/trunk@59904 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
beard%netscape.com 2000-02-05 23:11:20 +00:00
parent c253bbfd73
commit 8932999a96

View File

@ -307,7 +307,7 @@ nsresult nsMacWindow::StandardCreate(nsIWidget *aParent,
nsNativeWidget aNativeParent)
{
short bottomPinDelta = 0; // # of pixels to subtract to pin window bottom
nsIToolkit *theToolkit = aToolkit;
nsCOMPtr<nsIToolkit> theToolkit = aToolkit;
// build the main native window
if (aNativeParent == nsnull)
@ -340,7 +340,7 @@ nsresult nsMacWindow::StandardCreate(nsIWidget *aParent,
// ...fall through...
mOffsetParent = aParent;
if(aParent != nsnull){
theToolkit = (nsIToolkit*)(aParent->GetToolkit());
theToolkit = getter_AddRefs(aParent->GetToolkit());
}
mAcceptsActivation = PR_FALSE;
@ -691,8 +691,7 @@ NS_IMETHODIMP nsMacWindow::GetScreenBounds(nsRect &aRect) {
//-------------------------------------------------------------------------
PRBool nsMacWindow::OnPaint(nsPaintEvent &event)
{
return PR_TRUE; // don't dispatch the update event
return PR_TRUE; // don't dispatch the update event
}
//-------------------------------------------------------------------------