From 1e4aa90dfbd908d589cddc1b4c6f1c233ce4b448 Mon Sep 17 00:00:00 2001 From: "blizzard%redhat.com" Date: Tue, 11 Jul 2000 20:56:35 +0000 Subject: [PATCH] fix memory leak in scrolling code. make sure to destroy a temporary region before jumping to the end of the function. a=brendan --- widget/src/gtksuperwin/gdksuperwin.c | 1 + 1 file changed, 1 insertion(+) diff --git a/widget/src/gtksuperwin/gdksuperwin.c b/widget/src/gtksuperwin/gdksuperwin.c index 11c5ec6bd691..4237a5f41dfd 100644 --- a/widget/src/gtksuperwin/gdksuperwin.c +++ b/widget/src/gtksuperwin/gdksuperwin.c @@ -614,6 +614,7 @@ void gdk_superwin_handle_expose (GdkSuperWin *superwin, XEvent *xevent, /* if the rect of the expose event is contained in the antiexpose then we should just drop it on the floor. */ if (gdk_region_rect_in(antiexpose_region, &rect) == GDK_OVERLAP_RECTANGLE_IN) { + gdk_region_destroy(antiexpose_region); goto end; } gdk_region_destroy(antiexpose_region);