зеркало из https://github.com/mozilla/gecko-dev.git
add refcount in GetDeviceContext and GetAppShell
This commit is contained in:
Родитель
75f21443b8
Коммит
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;
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче