From e68435c05887f4245ace294b578980063de7fbbb Mon Sep 17 00:00:00 2001 From: "tor%cs.brown.edu" Date: Wed, 28 Jun 2000 05:00:20 +0000 Subject: [PATCH] Plug a region leak in nsRegionGTK::SetTo(). r=pavlov --- gfx/src/gtk/nsRegionGTK.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gfx/src/gtk/nsRegionGTK.cpp b/gfx/src/gtk/nsRegionGTK.cpp index 53aaddc8a78..748e443f21b 100644 --- a/gfx/src/gtk/nsRegionGTK.cpp +++ b/gfx/src/gtk/nsRegionGTK.cpp @@ -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); }