зеркало из https://github.com/mozilla/pjs.git
Fixed an improper use of NS_RELEASE
This commit is contained in:
Родитель
663ee59e53
Коммит
c8aad55ba1
|
@ -1290,10 +1290,9 @@ nsGenericElement::AddRef()
|
|||
NS_IMETHODIMP_(nsrefcnt)
|
||||
nsGenericElement::Release()
|
||||
{
|
||||
nsIContent* content = mContent;
|
||||
|
||||
// Release the copy since the macro will null the pointer.
|
||||
return NS_RELEASE(content);
|
||||
nsrefcnt rc;
|
||||
NS_RELEASE2(mContent, rc);
|
||||
return rc;
|
||||
}
|
||||
|
||||
//----------------------------------------------------------------------
|
||||
|
|
|
@ -1290,10 +1290,9 @@ nsGenericElement::AddRef()
|
|||
NS_IMETHODIMP_(nsrefcnt)
|
||||
nsGenericElement::Release()
|
||||
{
|
||||
nsIContent* content = mContent;
|
||||
|
||||
// Release the copy since the macro will null the pointer.
|
||||
return NS_RELEASE(content);
|
||||
nsrefcnt rc;
|
||||
NS_RELEASE2(mContent, rc);
|
||||
return rc;
|
||||
}
|
||||
|
||||
//----------------------------------------------------------------------
|
||||
|
|
Загрузка…
Ссылка в новой задаче