зеркало из https://github.com/mozilla/pjs.git
fixed memory leak.
This commit is contained in:
Родитель
d9abc55f33
Коммит
2dd9022944
|
@ -2149,6 +2149,7 @@ TextFrame::ComputeWordFragmentWidth(nsLineLayout& aLineLayout,
|
|||
rc.GetWidth(buf, wordLen, width);
|
||||
}
|
||||
rc.SetFont(oldfm);
|
||||
NS_IF_RELEASE(oldfm);
|
||||
NS_RELEASE(sc);
|
||||
|
||||
#ifdef DEBUG_WORD_WRAPPING
|
||||
|
|
|
@ -2149,6 +2149,7 @@ TextFrame::ComputeWordFragmentWidth(nsLineLayout& aLineLayout,
|
|||
rc.GetWidth(buf, wordLen, width);
|
||||
}
|
||||
rc.SetFont(oldfm);
|
||||
NS_IF_RELEASE(oldfm);
|
||||
NS_RELEASE(sc);
|
||||
|
||||
#ifdef DEBUG_WORD_WRAPPING
|
||||
|
|
Загрузка…
Ссылка в новой задаче