From 76f2b2af987a91a646c309cb9ba168314de7753f Mon Sep 17 00:00:00 2001 From: John Mark Bell Date: Mon, 17 Jan 2011 08:35:20 +0000 Subject: Remove erroneous commentary, and move associated code to a more sensible place svn path=/trunk/netsurf/; revision=11346 --- desktop/browser.c | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'desktop') diff --git a/desktop/browser.c b/desktop/browser.c index 073252b4a..d80886556 100644 --- a/desktop/browser.c +++ b/desktop/browser.c @@ -994,14 +994,9 @@ void browser_window_destroy_internal(struct browser_window *bw) /* Destruction order is important: we must ensure that the frontend * destroys any window(s) associated with this browser window before * we attempt any destructive cleanup. - * - * Additionally, we must destroy any selection and history before - * releasing the handle to any content objects this window is using. */ gui_window_destroy(bw->window); - selection_destroy(bw->sel); - history_destroy(bw->history); if (bw->loading_content != NULL) { hlcache_handle_release(bw->loading_content); @@ -1018,6 +1013,10 @@ void browser_window_destroy_internal(struct browser_window *bw) bw->current_content = NULL; } + /* These simply free memory, so are safe here */ + selection_destroy(bw->sel); + history_destroy(bw->history); + free(bw->name); free(bw->frag_id); free(bw->status_text); -- cgit v1.2.3