[Xfce4-commits] <midori:master> Take care to not leak speed dial markup
Christian Dywan
noreply at xfce.org
Wed Mar 23 22:16:02 CET 2011
Updating branch refs/heads/master
to 0efdd74c77fcbe9a35c308b1e1f10317ce2ba11b (commit)
from 6721c0592dfd1492b2dffa63899adb40d9a512d1 (commit)
commit 0efdd74c77fcbe9a35c308b1e1f10317ce2ba11b
Author: Paweł Forysiuk <tuxator at o2.pl>
Date: Wed Mar 23 22:14:30 2011 +0100
Take care to not leak speed dial markup
midori/midori-view.c | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/midori/midori-view.c b/midori/midori-view.c
index 091d139..1175e23 100644
--- a/midori/midori-view.c
+++ b/midori/midori-view.c
@@ -3905,6 +3905,7 @@ midori_view_set_uri (MidoriView* view,
gchar* res_root;
gchar* speed_dial_head;
gchar* speed_dial_body;
+ gchar* speed_dial_markup;
gchar* stock_root;
gchar* filepath;
#ifdef G_ENABLE_DEBUG
@@ -3958,16 +3959,17 @@ midori_view_set_uri (MidoriView* view,
#endif
speed_dial_body = prepare_speed_dial_html (view);
- data = g_strdup_printf ("%s\n%s", data, prepare_speed_dial_html (view));
+ speed_dial_markup = g_strdup_printf ("%s\n%s", data, speed_dial_body);
midori_view_load_alternate_string (view,
- data, res_root, "about:blank", NULL);
+ speed_dial_markup, res_root, "about:blank", NULL);
g_free (res_root);
g_free (stock_root);
g_free (data);
g_free (speed_dial_head);
g_free (speed_dial_body);
+ g_free (speed_dial_markup);
}
/* This is not prefectly elegant, but creating
special pages inline is the simplest solution. */
More information about the Xfce4-commits
mailing list