mirror of
https://github.com/netsurf-browser/netsurf
synced 2024-11-28 09:13:08 +03:00
Remove erroneous commentary, and move associated code to a more sensible place
svn path=/trunk/netsurf/; revision=11346
This commit is contained in:
parent
1034f16f0b
commit
76f2b2af98
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user