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. --- embed/mozilla/mozilla-embed-persist.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'embed') 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