summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--shell/ev-window.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/shell/ev-window.c b/shell/ev-window.c
index 67208a8a..3053c03e 100644
--- a/shell/ev-window.c
+++ b/shell/ev-window.c
@@ -1599,6 +1599,7 @@ ev_window_set_document (EvWindow *ev_window, EvDocument *document)
ev_web_view_disconnect_handlers(EV_WEB_VIEW(ev_window->priv->webview));
g_object_ref_sink(ev_window->priv->webview);
g_object_unref(ev_window->priv->webview);
+ ev_window->priv->webview = NULL;
}
#endif
if (EV_WINDOW_IS_PRESENTATION (ev_window) && document->iswebdocument == FALSE) {