aboutsummaryrefslogtreecommitdiffstats
path: root/embed
diff options
context:
space:
mode:
authorXan Lopez <xan@igalia.com>2013-03-13 03:49:35 +0800
committerXan Lopez <xan@igalia.com>2013-03-13 03:51:24 +0800
commite0e7b8004b874294d887c99b2421bd3a1e618b38 (patch)
treeba21642e977542be5e88c5e1194ec9f97fbcc6a6 /embed
parent57725fd30f7bc6d4f5e050cfb21db41d6397872a (diff)
downloadgsoc2013-epiphany-e0e7b8004b874294d887c99b2421bd3a1e618b38.tar
gsoc2013-epiphany-e0e7b8004b874294d887c99b2421bd3a1e618b38.tar.gz
gsoc2013-epiphany-e0e7b8004b874294d887c99b2421bd3a1e618b38.tar.bz2
gsoc2013-epiphany-e0e7b8004b874294d887c99b2421bd3a1e618b38.tar.lz
gsoc2013-epiphany-e0e7b8004b874294d887c99b2421bd3a1e618b38.tar.xz
gsoc2013-epiphany-e0e7b8004b874294d887c99b2421bd3a1e618b38.tar.zst
gsoc2013-epiphany-e0e7b8004b874294d887c99b2421bd3a1e618b38.zip
ephy-embed-shell: set bus watch id to zero
Since dispose can run multiple times. Patch by Carlos GarcĂ­a Campos <cgarcia@igalia.com>
Diffstat (limited to 'embed')
-rw-r--r--embed/ephy-embed-shell.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/embed/ephy-embed-shell.c b/embed/ephy-embed-shell.c
index 19e543216..42ba8ed90 100644
--- a/embed/ephy-embed-shell.c
+++ b/embed/ephy-embed-shell.c
@@ -106,8 +106,10 @@ ephy_embed_shell_dispose (GObject *object)
g_clear_object (&priv->embed_single);
#ifdef HAVE_WEBKIT2
g_clear_object (&priv->web_extension);
- if (priv->web_extension_watch_name_id > 0)
+ if (priv->web_extension_watch_name_id > 0) {
g_bus_unwatch_name (priv->web_extension_watch_name_id);
+ priv->web_extension_watch_name_id = 0;
+ }
#else
g_clear_object (&priv->adblock_manager);
#endif