diff options
author | Christian Persch <chpe@cvs.gnome.org> | 2005-07-30 03:53:46 +0800 |
---|---|---|
committer | Christian Persch <chpe@src.gnome.org> | 2005-07-30 03:53:46 +0800 |
commit | 2ec6bec12610fd0cfed6bc2612c3a9c23815df62 (patch) | |
tree | 96c0bc607659ac52a7e39c839bee93f5a20178de /src/ephy-python-extension.c | |
parent | 04e7795daadca2b11162a791eb0734163da5acdc (diff) | |
download | gsoc2013-epiphany-2ec6bec12610fd0cfed6bc2612c3a9c23815df62.tar.gz 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.c | 5 |
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 |