mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-13 01:55:44 +00:00
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:
parent
0fcf0b8ca9
commit
1e4aa90dfb
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user