From 3ac71da2c4afcd8d9f6ca05093cf10d81667df08 Mon Sep 17 00:00:00 2001 From: Christian Dywan Date: Sat, 18 Jul 2009 15:30:03 +0200 Subject: [PATCH] Make sure to only update the proxy array if it's still there The proxy array of the browser is unset during disposal, so we may end up trying to work with a NULL value. --- midori/midori-browser.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/midori/midori-browser.c b/midori/midori-browser.c index 61ababa5..c50606e5 100644 --- a/midori/midori-browser.c +++ b/midori/midori-browser.c @@ -4009,8 +4009,9 @@ gtk_notebook_switch_page_cb (GtkWidget* notebook, gtk_window_set_title (GTK_WINDOW (browser), window_title); g_free (window_title); - katze_item_set_meta_integer (KATZE_ITEM (browser->proxy_array), "current", - midori_browser_get_current_page (browser)); + if (browser->proxy_array) + katze_item_set_meta_integer (KATZE_ITEM (browser->proxy_array), "current", + midori_browser_get_current_page (browser)); g_object_notify (G_OBJECT (browser), "uri"); _midori_browser_set_statusbar_text (browser, NULL); -- 2.39.5