aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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