diff options
author | Iain Nicol <iain@thenicols.net> | 2009-10-24 04:37:49 +0800 |
---|---|---|
committer | Xan Lopez <xan@gnome.org> | 2009-10-24 05:01:55 +0800 |
commit | deafbe738f0293b1cacca8e388aa34ea442818e3 (patch) | |
tree | 4e84bf7183ffd784933f0420eb0f00fd74f183a0 /src/ephy-seed-extension.c | |
parent | 46845bbcf412994f0bb3e949178c6f72f676f70b (diff) | |
download | gsoc2013-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/ephy-seed-extension.c')
-rw-r--r-- | src/ephy-seed-extension.c | 1 |
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", |