diff options
Diffstat (limited to 'desktop/browser.c')
-rw-r--r-- | desktop/browser.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/desktop/browser.c b/desktop/browser.c index 8df59eee7..80bf65a63 100644 --- a/desktop/browser.c +++ b/desktop/browser.c @@ -1749,6 +1749,15 @@ static void browser_window_destroy_internal(struct browser_window *bw) browser_window_destroy_children(bw); } + /* Destroy scrollbars */ + if (bw->scroll_x != NULL) { + scrollbar_destroy(bw->scroll_x); + } + + if (bw->scroll_y != NULL) { + scrollbar_destroy(bw->scroll_y); + } + /* clear any pending callbacks */ guit->browser->schedule(-1, browser_window_refresh, bw); /* The ugly cast here is so the reformat function can be |