From 1f00d2ed14d96c7be987db0c307387259e9f1d76 Mon Sep 17 00:00:00 2001 From: Matthias Kruk Date: Tue, 24 Feb 2009 22:59:18 +0100 Subject: [PATCH] Remove any left timeouts if the browser is destroyed --- midori/midori-browser.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/midori/midori-browser.c b/midori/midori-browser.c index 34580136..2f68ef07 100644 --- a/midori/midori-browser.c +++ b/midori/midori-browser.c @@ -3111,6 +3111,11 @@ midori_browser_size_allocate_cb (MidoriBrowser* browser, static void midori_browser_destroy_cb (MidoriBrowser* browser) { + if (G_UNLIKELY (browser->panel_timeout)) + g_source_remove (browser->panel_timeout); + if (G_UNLIKELY (browser->alloc_timeout)) + g_source_remove (browser->alloc_timeout); + /* Destroy panel first, so panels don't need special care */ gtk_widget_destroy (browser->panel); /* Destroy tabs second, so child widgets don't need special care */