зеркало из https://github.com/mozilla/pjs.git
leaking nsIRegions in nsViewManager::ProcessPendingUpdates() when region is empty. Duh! Switched to nsCOMPtr.
This commit is contained in:
Родитель
67dc9fdf6d
Коммит
2e2cfcbf8b
|
@ -1310,12 +1310,11 @@ void nsViewManager :: UpdateDirtyViews(nsIView *aView, nsRect *aParentRect) cons
|
|||
|
||||
void nsViewManager::ProcessPendingUpdates(nsIView* aView)
|
||||
{
|
||||
nsIRegion* dirtyRegion = nsnull;
|
||||
aView->GetDirtyRegion(dirtyRegion);
|
||||
nsCOMPtr<nsIRegion> dirtyRegion;
|
||||
aView->GetDirtyRegion(*getter_AddRefs(dirtyRegion));
|
||||
if (dirtyRegion != nsnull && !dirtyRegion->IsEmpty()) {
|
||||
UpdateView(aView, dirtyRegion, 0);
|
||||
dirtyRegion->Init();
|
||||
NS_RELEASE(dirtyRegion);
|
||||
}
|
||||
|
||||
// process pending updates in child view.
|
||||
|
|
Загрузка…
Ссылка в новой задаче