aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorIain Nicol <iain@thenicols.net>2009-10-24 04:37:49 +0800
committerXan Lopez <xan@gnome.org>2009-10-24 05:01:55 +0800
commitdeafbe738f0293b1cacca8e388aa34ea442818e3 (patch)
tree4e84bf7183ffd784933f0420eb0f00fd74f183a0 /src
parent46845bbcf412994f0bb3e949178c6f72f676f70b (diff)
downloadgsoc2013-epiphany-deafbe738f0293b1cacca8e388aa34ea442818e3.tar
gsoc2013-epiphany-deafbe738f0293b1cacca8e388aa34ea442818e3.tar.gz
gsoc2013-epiphany-deafbe738f0293b1cacca8e388aa34ea442818e3.tar.bz2
gsoc2013-epiphany-deafbe738f0293b1cacca8e388aa34ea442818e3.tar.lz
gsoc2013-epiphany-deafbe738f0293b1cacca8e388aa34ea442818e3.tar.xz
gsoc2013-epiphany-deafbe738f0293b1cacca8e388aa34ea442818e3.tar.zst
gsoc2013-epiphany-deafbe738f0293b1cacca8e388aa34ea442818e3.zip
ephy-seed-extension: don't crash when detaching multiple extensions
Protect the seed object from being released by the garbage collector after the first extension is detached. Bug #599422 Signed-off-by: Xan Lopez <xan@gnome.org>
Diffstat (limited to 'src')
-rw-r--r--src/ephy-seed-extension.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/ephy-seed-extension.c b/src/ephy-seed-extension.c
index 7fd444d45..95658fd2d 100644
--- a/src/ephy-seed-extension.c
+++ b/src/ephy-seed-extension.c
@@ -190,6 +190,7 @@ ephy_seed_extension_constructor (GType type,
ext->priv->obj = seed_evaluate (global_eng->context,
script,
NULL);
+ seed_value_protect (ext->priv->ctx, ext->priv->obj);
if (seed_script_exception (script))
g_warning ("seed_exception: %s",