aboutsummaryrefslogtreecommitdiffstats
path: root/src/window-commands.c
diff options
context:
space:
mode:
authorXan Lopez <xan@gnome.org>2009-09-07 18:42:04 +0800
committerXan Lopez <xan@gnome.org>2009-09-07 18:45:50 +0800
commit38acd37212cf2636468cfbec151bf7a2b4d2d535 (patch)
treebcc41eff25fa9e1075cb483eac7322cac5ce6386 /src/window-commands.c
parentc04b665f8350df1152212fc3c053e5700afa2067 (diff)
downloadgsoc2013-epiphany-38acd37212cf2636468cfbec151bf7a2b4d2d535.tar
gsoc2013-epiphany-38acd37212cf2636468cfbec151bf7a2b4d2d535.tar.gz
gsoc2013-epiphany-38acd37212cf2636468cfbec151bf7a2b4d2d535.tar.bz2
gsoc2013-epiphany-38acd37212cf2636468cfbec151bf7a2b4d2d535.tar.lz
gsoc2013-epiphany-38acd37212cf2636468cfbec151bf7a2b4d2d535.tar.xz
gsoc2013-epiphany-38acd37212cf2636468cfbec151bf7a2b4d2d535.tar.zst
gsoc2013-epiphany-38acd37212cf2636468cfbec151bf7a2b4d2d535.zip
window-commands: better strdup the URI webkit gives us
Since it's owned by the view, which might be dead by the time we fallback to viewing the source in another tab.
Diffstat (limited to 'src/window-commands.c')
-rw-r--r--src/window-commands.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/window-commands.c b/src/window-commands.c
index 77bb616ae..a1898a6f9 100644
--- a/src/window-commands.c
+++ b/src/window-commands.c
@@ -707,9 +707,10 @@ save_temp_source_replace_cb (GFile *file, GAsyncResult *result, EphyEmbed *embed
view = ephy_embed_get_web_view (embed);
- g_object_set_data (G_OBJECT (ostream),
- "ephy-original-source-uri",
- (gpointer)webkit_web_view_get_uri (WEBKIT_WEB_VIEW (view)));
+ g_object_set_data_full (G_OBJECT (ostream),
+ "ephy-original-source-uri",
+ 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",