diff options
author | Marco Pesenti Gritti <marco@it.gnome.org> | 2003-03-16 02:27:14 +0800 |
---|---|---|
committer | Marco Pesenti Gritti <mpeseng@src.gnome.org> | 2003-03-16 02:27:14 +0800 |
commit | a49c85f4678d4b9edb19725b6c2168dc706d5b54 (patch) | |
tree | 954a5912f58deda747cce720e533349612def829 /embed/mozilla/mozilla-embed-persist.cpp | |
parent | e460bd19de1c3856b1f066a84fc985014f07004f (diff) | |
download | gsoc2013-epiphany-a49c85f4678d4b9edb19725b6c2168dc706d5b54.tar gsoc2013-epiphany-a49c85f4678d4b9edb19725b6c2168dc706d5b54.tar.gz gsoc2013-epiphany-a49c85f4678d4b9edb19725b6c2168dc706d5b54.tar.bz2 gsoc2013-epiphany-a49c85f4678d4b9edb19725b6c2168dc706d5b54.tar.lz gsoc2013-epiphany-a49c85f4678d4b9edb19725b6c2168dc706d5b54.tar.xz gsoc2013-epiphany-a49c85f4678d4b9edb19725b6c2168dc706d5b54.tar.zst gsoc2013-epiphany-a49c85f4678d4b9edb19725b6c2168dc706d5b54.zip |
Keep a ref on EmbedPersist while save is in progress.
2003-03-15 Marco Pesenti Gritti <marco@it.gnome.org>
* embed/ephy-embed-persist.c: (ephy_embed_persist_init),
(ephy_embed_persist_finalize):
* embed/mozilla/ProgressListener.cpp:
* embed/mozilla/mozilla-embed-persist.cpp:
* embed/mozilla/mozilla-embed-persist.h:
Keep a ref on EmbedPersist while save is in progress.
Diffstat (limited to 'embed/mozilla/mozilla-embed-persist.cpp')
-rw-r--r-- | embed/mozilla/mozilla-embed-persist.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/embed/mozilla/mozilla-embed-persist.cpp b/embed/mozilla/mozilla-embed-persist.cpp index a2db4ac4a..2b19bcc69 100644 --- a/embed/mozilla/mozilla-embed-persist.cpp +++ b/embed/mozilla/mozilla-embed-persist.cpp @@ -122,6 +122,13 @@ void mozilla_embed_persist_completed (MozillaEmbedPersist *persist) { g_signal_emit_by_name (persist, "completed"); + g_object_unref (persist); +} + +void +mozilla_embed_persist_cancelled (MozillaEmbedPersist *persist) +{ + g_object_unref (persist); } static gresult @@ -133,6 +140,8 @@ impl_cancel (EphyEmbedPersist *persist) bpersist->CancelSave (); + g_object_unref (persist); + return G_OK; } @@ -147,6 +156,8 @@ impl_save (EphyEmbedPersist *persist) EphyEmbed *embed; EmbedPersistFlags flags; EphyWrapper *wrapper = NULL; + + g_object_ref (persist); g_object_get (persist, "source", &uri, |