aboutsummaryrefslogtreecommitdiffstats
path: root/addressbook/gui/widgets
diff options
context:
space:
mode:
Diffstat (limited to 'addressbook/gui/widgets')
-rw-r--r--addressbook/gui/widgets/e-minicard.c2
-rw-r--r--addressbook/gui/widgets/eab-contact-display.c5
2 files changed, 5 insertions, 2 deletions
diff --git a/addressbook/gui/widgets/e-minicard.c b/addressbook/gui/widgets/e-minicard.c
index ddfcc1a9f9..3c13a0cd71 100644
--- a/addressbook/gui/widgets/e-minicard.c
+++ b/addressbook/gui/widgets/e-minicard.c
@@ -1017,7 +1017,7 @@ remodel (EMinicard *e_minicard)
count = 5;
else
count = count + g_list_length (email);
- g_list_free (email);
+ g_list_free_full (email, (GDestroyNotify) e_vcard_attribute_free);
} else {
string = e_contact_get (e_minicard->contact, field);
if (string && *string) {
diff --git a/addressbook/gui/widgets/eab-contact-display.c b/addressbook/gui/widgets/eab-contact-display.c
index d428f8ed77..44935c4ca9 100644
--- a/addressbook/gui/widgets/eab-contact-display.c
+++ b/addressbook/gui/widgets/eab-contact-display.c
@@ -203,13 +203,16 @@ render_address_link (GString *buffer,
adr = e_contact_get (contact, map_type);
if (adr &&
(adr->street || adr->locality || adr->region || adr->country)) {
+ gchar *escaped;
if (adr->street && *adr->street) g_string_append_printf (link, "%s, ", adr->street);
if (adr->locality && *adr->locality) g_string_append_printf (link, "%s, ", adr->locality);
if (adr->region && *adr->region) g_string_append_printf (link, "%s, ", adr->region);
if (adr->country && *adr->country) g_string_append_printf (link, "%s", adr->country);
- g_string_assign (link, g_uri_escape_string (link->str, NULL, TRUE));
+ escaped = g_uri_escape_string (link->str, NULL, TRUE);
+ g_string_assign (link, escaped);
+ g_free (escaped);
g_string_prepend (link, "<a href=\"http://maps.google.com?q=");
g_string_append_printf (link, "\">%s</a>", _("Open map"));