add refcount in GetDeviceContext and GetAppShell

This commit is contained in:
pierre%netscape.com 1998-09-16 22:45:24 +00:00
parent 75f21443b8
commit f372760887

View File

@ -773,7 +773,8 @@ void nsWindow::SetColorMap(nsColorMap *aColorMap)
//
//-------------------------------------------------------------------------
nsIDeviceContext* nsWindow::GetDeviceContext()
{
{
NS_IF_ADDREF(mContext);
return mContext;
}
@ -784,6 +785,7 @@ nsIDeviceContext* nsWindow::GetDeviceContext()
//-------------------------------------------------------------------------
nsIAppShell* nsWindow::GetAppShell()
{
NS_IF_ADDREF(mAppShell);
return mAppShell;
}