fix memory leak in scrolling code. make sure to destroy a temporary region before jumping to the end of the function. a=brendan

This commit is contained in:
blizzard%redhat.com 2000-07-11 20:56:35 +00:00
parent 0fcf0b8ca9
commit 1e4aa90dfb

View File

@ -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);