aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristian Persch <chpe@cvs.gnome.org>2004-05-16 02:04:56 +0800
committerChristian Persch <chpe@src.gnome.org>2004-05-16 02:04:56 +0800
commit66c33032fe0787f5cfbbd50c6aee52d083a0c94f (patch)
tree5fbc49e715fed0a64c1f7d01be3bb34aa08881a6
parent68b5dd86c845d83cebd404eb5c0d2bdd3fe1e26a (diff)
downloadgsoc2013-epiphany-66c33032fe0787f5cfbbd50c6aee52d083a0c94f.tar
gsoc2013-epiphany-66c33032fe0787f5cfbbd50c6aee52d083a0c94f.tar.gz
gsoc2013-epiphany-66c33032fe0787f5cfbbd50c6aee52d083a0c94f.tar.bz2
gsoc2013-epiphany-66c33032fe0787f5cfbbd50c6aee52d083a0c94f.tar.lz
gsoc2013-epiphany-66c33032fe0787f5cfbbd50c6aee52d083a0c94f.tar.xz
gsoc2013-epiphany-66c33032fe0787f5cfbbd50c6aee52d083a0c94f.tar.zst
gsoc2013-epiphany-66c33032fe0787f5cfbbd50c6aee52d083a0c94f.zip
Fix refcount leak.
2004-05-15 Christian Persch <chpe@cvs.gnome.org> * embed/mozilla/mozilla-embed-persist.cpp: Fix refcount leak.
-rw-r--r--ChangeLog6
-rw-r--r--embed/mozilla/mozilla-embed-persist.cpp3
2 files changed, 9 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 6f53bd9af..f89dd6490 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -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 */