From 3344b974af61c19ca100130ba6c69f252726e02f Mon Sep 17 00:00:00 2001 From: Daniel Silverstone Date: Wed, 14 Apr 2010 09:23:46 +0000 Subject: Move content shuffling to prevent crash during threading through reformat svn path=/trunk/netsurf/; revision=10396 --- desktop/browser.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'desktop') diff --git a/desktop/browser.c b/desktop/browser.c index 43847baf1..33cd42ba6 100644 --- a/desktop/browser.c +++ b/desktop/browser.c @@ -497,13 +497,13 @@ nserror browser_window_callback(hlcache_handle *c, hlcache_handle_release(bw->current_content); } + bw->current_content = c; + bw->loading_content = NULL; + /* Format the new content to the correct dimensions */ gui_window_get_dimensions(bw->window, &width, &height, true); content_reformat(c, width, height); - bw->current_content = c; - bw->loading_content = NULL; - browser_window_remove_caret(bw); bw->scroll = NULL; -- cgit v1.2.3