aboutsummaryrefslogtreecommitdiffstats
path: root/src/ephy-python-extension.c
diff options
context:
space:
mode:
authorChristian Persch <chpe@cvs.gnome.org>2005-07-30 03:53:46 +0800
committerChristian Persch <chpe@src.gnome.org>2005-07-30 03:53:46 +0800
commit2ec6bec12610fd0cfed6bc2612c3a9c23815df62 (patch)
tree96c0bc607659ac52a7e39c839bee93f5a20178de /src/ephy-python-extension.c
parent04e7795daadca2b11162a791eb0734163da5acdc (diff)
downloadgsoc2013-epiphany-2ec6bec12610fd0cfed6bc2612c3a9c23815df62.tar
gsoc2013-epiphany-2ec6bec12610fd0cfed6bc2612c3a9c23815df62.tar.gz
gsoc2013-epiphany-2ec6bec12610fd0cfed6bc2612c3a9c23815df62.tar.bz2
gsoc2013-epiphany-2ec6bec12610fd0cfed6bc2612c3a9c23815df62.tar.lz
gsoc2013-epiphany-2ec6bec12610fd0cfed6bc2612c3a9c23815df62.tar.xz
gsoc2013-epiphany-2ec6bec12610fd0cfed6bc2612c3a9c23815df62.tar.zst
gsoc2013-epiphany-2ec6bec12610fd0cfed6bc2612c3a9c23815df62.zip
Be careful not to leave a GC scheduled when terminating python.
2005-07-29 Christian Persch <chpe@cvs.gnome.org> * src/ephy-python-extension.c: (impl_detach_tab), (impl_detach_window): * src/ephy-python-loader.c: (ephy_python_loader_finalize): * src/ephy-python.c: (ephy_python_init), (idle_shutdown), (ephy_python_shutdown), (idle_gc), (ephy_python_schedule_gc): * src/ephy-python.h: Be careful not to leave a GC scheduled when terminating python.
Diffstat (limited to 'src/ephy-python-extension.c')
-rw-r--r--src/ephy-python-extension.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/ephy-python-extension.c b/src/ephy-python-extension.c
index 190327f73..a91ce3355 100644
--- a/src/ephy-python-extension.c
+++ b/src/ephy-python-extension.c
@@ -25,6 +25,7 @@
#include "config.h"
#include "ephy-python-extension.h"
+#include "ephy-python.h"
#include <pygobject.h>
@@ -254,7 +255,7 @@ impl_detach_tab (EphyExtension *extension,
{
call_python_func (extension, "detach_tab", window, tab);
- g_idle_add ((GSourceFunc) PyGC_Collect, NULL);
+ ephy_python_schedule_gc ();
}
static void
@@ -270,7 +271,7 @@ impl_detach_window (EphyExtension *extension,
{
call_python_func (extension, "detach_window", window, NULL);
- g_idle_add ((GSourceFunc) PyGC_Collect, NULL);
+ ephy_python_schedule_gc ();
}
static void