[epiphany] window-commands: also ref the embed while the stream is processed
- From: Xan Lopez <xan src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [epiphany] window-commands: also ref the embed while the stream is processed
- Date: Mon, 7 Sep 2009 11:03:41 +0000 (UTC)
commit 5b2f1a52a131d3377d3e2d8246aab468502ba7cf
Author: Xan Lopez <xan gnome org>
Date: Mon Sep 7 14:01:36 2009 +0300
window-commands: also ref the embed while the stream is processed
Since it also could go away meanwhile otherwise.
src/window-commands.c | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
---
diff --git a/src/window-commands.c b/src/window-commands.c
index a1898a6..8af9ef9 100644
--- a/src/window-commands.c
+++ b/src/window-commands.c
@@ -712,9 +712,10 @@ save_temp_source_replace_cb (GFile *file, GAsyncResult *result, EphyEmbed *embed
g_strdup (webkit_web_view_get_uri (WEBKIT_WEB_VIEW (view))),
g_free),
- g_object_set_data (G_OBJECT (ostream),
- "ephy-save-temp-source-embed",
- embed);
+ g_object_set_data_full (G_OBJECT (ostream),
+ "ephy-save-temp-source-embed",
+ g_object_ref (embed),
+ g_object_unref);
frame = webkit_web_view_get_main_frame (WEBKIT_WEB_VIEW (view));
data_source = webkit_web_frame_get_data_source (frame);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]