mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-30 00:01:50 +00:00
Plug a region leak in nsRegionGTK::SetTo(). r=pavlov
This commit is contained in:
parent
1123bd29aa
commit
398039ae41
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user