aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/ephy-tab.c8
-rw-r--r--src/ephy-window.c8
2 files changed, 16 insertions, 0 deletions
diff --git a/src/ephy-tab.c b/src/ephy-tab.c
index f19b6fd22..4d7faeff4 100644
--- a/src/ephy-tab.c
+++ b/src/ephy-tab.c
@@ -64,6 +64,10 @@
#include <libgnomevfs/gnome-vfs-uri.h>
#include <string.h>
+#ifdef ENABLE_PYTHON
+#include "ephy-python.h"
+#endif
+
#define EPHY_TAB_GET_PRIVATE(object)(G_TYPE_INSTANCE_GET_PRIVATE ((object), EPHY_TYPE_TAB, EphyTabPrivate))
#define MAX_HIDDEN_POPUPS 5
@@ -834,6 +838,10 @@ ephy_tab_finalize (GObject *object)
G_OBJECT_CLASS (parent_class)->finalize (object);
+#ifdef ENABLE_PYTHON
+ ephy_python_schedule_gc ();
+#endif
+
LOG ("EphyTab finalized %p", tab);
}
diff --git a/src/ephy-window.c b/src/ephy-window.c
index 3abcc2c7b..3716b32ed 100644
--- a/src/ephy-window.c
+++ b/src/ephy-window.c
@@ -73,6 +73,10 @@
#include <X11/XF86keysym.h>
#endif
+#ifdef ENABLE_PYTHON
+#include "ephy-python.h"
+#endif
+
static void ephy_window_class_init (EphyWindowClass *klass);
static void ephy_window_link_iface_init (EphyLinkIface *iface);
static void ephy_window_init (EphyWindow *gs);
@@ -3040,6 +3044,10 @@ ephy_window_finalize (GObject *object)
LOG ("Ephy Window finalized %p", object);
+#ifdef ENABLE_PYTHON
+ ephy_python_schedule_gc ();
+#endif
+
g_object_unref (ephy_shell);
}