Plug a region leak in nsRegionGTK::SetTo(). r=pavlov

This commit is contained in:
tor%cs.brown.edu 2000-06-28 05:00:20 +00:00
parent 1123bd29aa
commit 398039ae41

View File

@ -99,7 +99,7 @@ nsresult nsRegionGTK::Init(void)
void nsRegionGTK::SetTo(const nsIRegion &aRegion)
{
SetRegionEmpty();
Init();
nsRegionGTK *pRegion = (nsRegionGTK *)&aRegion;
@ -108,7 +108,7 @@ void nsRegionGTK::SetTo(const nsIRegion &aRegion)
void nsRegionGTK::SetTo(PRInt32 aX, PRInt32 aY, PRInt32 aWidth, PRInt32 aHeight)
{
SetRegionEmpty();
Init();
mRegion = gdk_region_from_rect(aX, aY, aWidth, aHeight);
}