From 66c33032fe0787f5cfbbd50c6aee52d083a0c94f Mon Sep 17 00:00:00 2001 From: Christian Persch Date: Sat, 15 May 2004 18:04:56 +0000 Subject: Fix refcount leak. 2004-05-15 Christian Persch * embed/mozilla/mozilla-embed-persist.cpp: Fix refcount leak. --- ChangeLog | 6 ++++++ embed/mozilla/mozilla-embed-persist.cpp | 3 +++ 2 files changed, 9 insertions(+) diff --git a/ChangeLog b/ChangeLog index 6f53bd9af..f89dd6490 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2004-05-15 Christian Persch + + * embed/mozilla/mozilla-embed-persist.cpp: + + Fix refcount leak. + 2004-05-15 Christian Persch * embed/mozilla/EphyBrowser.cpp: 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 */ -- cgit v1.2.3