diff options
Diffstat (limited to 'addressbook/gui/component')
-rw-r--r-- | addressbook/gui/component/e-address-popup.c | 1 | ||||
-rw-r--r-- | addressbook/gui/component/select-names/e-select-names-completion.c | 5 |
2 files changed, 5 insertions, 1 deletions
diff --git a/addressbook/gui/component/e-address-popup.c b/addressbook/gui/component/e-address-popup.c index 362eee4250..f9e54c4b9e 100644 --- a/addressbook/gui/component/e-address-popup.c +++ b/addressbook/gui/component/e-address-popup.c @@ -849,6 +849,7 @@ e_address_popup_construct (EAddressPopup *pop) GtkStyle *style = gtk_style_copy (gtk_widget_get_style (GTK_WIDGET (name_holder))); style->bg[0] = color; gtk_widget_set_style (GTK_WIDGET (name_holder), style); + gtk_style_unref (style); } pop->generic_view = gtk_frame_new (NULL); diff --git a/addressbook/gui/component/select-names/e-select-names-completion.c b/addressbook/gui/component/select-names/e-select-names-completion.c index 403173caa8..0da1b42a50 100644 --- a/addressbook/gui/component/select-names/e-select-names-completion.c +++ b/addressbook/gui/component/select-names/e-select-names-completion.c @@ -230,9 +230,12 @@ name_style_query (ESelectNamesCompletion *comp, const gchar *field) strv = g_strsplit (cpy, " ", 0); for (i=0; strv[i]; ++i) { + gchar *old; ++count; g_strstrip (strv[i]); - strv[i] = g_strdup_printf ("(contains \"%s\" \"%s\")", field, strv[i]); + old = strv[i]; + strv[i] = g_strdup_printf ("(contains \"%s\" \"%s\")", field, old); + g_free (old); } if (count == 1) { |