Fix crash when pages are loading

svn path=/trunk/netsurf/; revision=7537
This commit is contained in:
Chris Young 2009-05-23 19:06:58 +00:00
parent cbef74a802
commit 3a93fd1085

View File

@ -2773,7 +2773,11 @@ void gui_window_remove_caret(struct gui_window *g)
void gui_window_new_content(struct gui_window *g)
{
struct content *c = g->shared->bw->current_content;
struct content *c;
if(g && g->shared && g->shared->bw)
c = g->shared->bw->current_content;
else return;
if(c->type <= CONTENT_CSS)
{