aboutsummaryrefslogtreecommitdiffstats
path: root/embed
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 /embed
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.
Diffstat (limited to 'embed')
-rw-r--r--embed/mozilla/mozilla-embed-persist.cpp3
1 files changed, 3 insertions, 0 deletions
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 */