From e9ff838f4de64653799c8a8b79610ad073e8a52c Mon Sep 17 00:00:00 2001 From: monsta Date: Tue, 26 Apr 2016 15:32:19 +0300 Subject: window: fix another random webview-related crash --- shell/ev-window.c | 1 + 1 file changed, 1 insertion(+) 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) { -- cgit v1.2.1