diff options
author | Christian Persch <chpe@cvs.gnome.org> | 2005-10-03 03:00:12 +0800 |
---|---|---|
committer | Christian Persch <chpe@src.gnome.org> | 2005-10-03 03:00:12 +0800 |
commit | c067b6612a9b510e46c7b5d038ef3b57511ac226 (patch) | |
tree | 8d20138790fa11e9697d4c9fd70650a7134d450f | |
parent | 740aa0f7203b3b80d714c4e899f7cdb2bcb738ea (diff) | |
download | gsoc2013-epiphany-c067b6612a9b510e46c7b5d038ef3b57511ac226.tar gsoc2013-epiphany-c067b6612a9b510e46c7b5d038ef3b57511ac226.tar.gz gsoc2013-epiphany-c067b6612a9b510e46c7b5d038ef3b57511ac226.tar.bz2 gsoc2013-epiphany-c067b6612a9b510e46c7b5d038ef3b57511ac226.tar.lz gsoc2013-epiphany-c067b6612a9b510e46c7b5d038ef3b57511ac226.tar.xz gsoc2013-epiphany-c067b6612a9b510e46c7b5d038ef3b57511ac226.tar.zst gsoc2013-epiphany-c067b6612a9b510e46c7b5d038ef3b57511ac226.zip |
Schedule a GC in finalize of EphyTab and EphyWindow, to work around bug
2005-10-02 Christian Persch <chpe@cvs.gnome.org>
* src/ephy-tab.c: (ephy_tab_finalize):
* src/ephy-window.c: (ephy_window_finalize):
Schedule a GC in finalize of EphyTab and EphyWindow, to
work around bug #317242.
-rw-r--r-- | ChangeLog | 8 | ||||
-rw-r--r-- | src/ephy-tab.c | 8 | ||||
-rw-r--r-- | src/ephy-window.c | 8 |
3 files changed, 24 insertions, 0 deletions
@@ -1,5 +1,13 @@ 2005-10-02 Christian Persch <chpe@cvs.gnome.org> + * src/ephy-tab.c: (ephy_tab_finalize): + * src/ephy-window.c: (ephy_window_finalize): + + Schedule a GC in finalize of EphyTab and EphyWindow, to + work around bug #317242. + +2005-10-02 Christian Persch <chpe@cvs.gnome.org> + * configure.ac: * embed/ephy-embed-shell.c: (ephy_embed_shell_dispose), (ephy_embed_shell_finalize), (ephy_embed_shell_class_init): 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 9ff578c2f..96ba80714 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); @@ -3060,6 +3064,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); } |