leaking nsIRegions in nsViewManager::ProcessPendingUpdates() when region is empty. Duh! Switched to nsCOMPtr.
git-svn-id: svn://10.0.0.236/trunk@49138 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
parent
e2eb39f437
commit
9062bea1a4
@ -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.
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user