mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-09 08:48:07 +00:00
add refcount in GetDeviceContext and GetAppShell
This commit is contained in:
parent
75f21443b8
commit
f372760887
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user