diff options
-rw-r--r-- | ChangeLog | 6 | ||||
-rw-r--r-- | embed/mozilla/mozilla-embed-persist.cpp | 3 |
2 files changed, 9 insertions, 0 deletions
@@ -1,5 +1,11 @@ 2004-05-15 Christian Persch <chpe@cvs.gnome.org> + * embed/mozilla/mozilla-embed-persist.cpp: + + Fix refcount leak. + +2004-05-15 Christian Persch <chpe@cvs.gnome.org> + * embed/mozilla/EphyBrowser.cpp: Set mEventReceiver to nsnull in ::Destroy(), fixes a crasher. diff --git a/embed/mozilla/mozilla-embed-persist.cpp b/embed/mozilla/mozilla-embed-persist.cpp index 87c8dc7ce..7b20ad197 100644 --- a/embed/mozilla/mozilla-embed-persist.cpp +++ b/embed/mozilla/mozilla-embed-persist.cpp @@ -160,6 +160,9 @@ impl_save (EphyEmbedPersist *persist) if (embed) { browser = (EphyBrowser *) _mozilla_embed_get_ephy_browser (MOZILLA_EMBED(embed)); + + g_object_unref (embed); + NS_ENSURE_TRUE (browser, FALSE); } /* we must have one of uri or browser */ |