From 2ec6bec12610fd0cfed6bc2612c3a9c23815df62 Mon Sep 17 00:00:00 2001
From: Christian Persch <chpe@cvs.gnome.org>
Date: Fri, 29 Jul 2005 19:53:46 +0000
Subject: 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.
---
 src/ephy-python-extension.c | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

(limited to 'src/ephy-python-extension.c')

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
-- 
cgit