зеркало из https://github.com/mozilla/gecko-dev.git
Fix memory leak. Layout should not hold ref to canvas
This commit is contained in:
Родитель
8d26b3c0c8
Коммит
e70d65c945
|
@ -49,7 +49,6 @@ nsBoxLayout :: nsBoxLayout() : nsLayout()
|
|||
|
||||
nsBoxLayout :: ~nsBoxLayout()
|
||||
{
|
||||
NS_IF_RELEASE(mContainer);
|
||||
}
|
||||
|
||||
|
||||
|
@ -83,9 +82,7 @@ nsresult nsBoxLayout :: Init()
|
|||
|
||||
nsresult nsBoxLayout :: Init(nsIXPFCCanvas * aContainer)
|
||||
{
|
||||
NS_IF_RELEASE(mContainer);
|
||||
mContainer = aContainer;
|
||||
NS_ADDREF(mContainer);
|
||||
return NS_OK ;
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче