From: Christian Dywan Date: Sat, 18 Jul 2009 13:30:03 +0000 (+0200) Subject: Make sure to only update the proxy array if it's still there X-Git-Url: https://spindle.queued.net/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3ac71da2c4afcd8d9f6ca05093cf10d81667df08;p=midori 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. --- 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);