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
Родитель 0fcf0b8ca9
Коммит 1e4aa90dfb
1 изменённых файлов: 1 добавлений и 0 удалений

Просмотреть файл

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