aboutsummaryrefslogtreecommitdiffstats
path: root/addressbook/gui/component/select-names
diff options
context:
space:
mode:
authorJon Trowbridge <trow@ximian.com>2001-10-21 08:57:18 +0800
committerJon Trowbridge <trow@src.gnome.org>2001-10-21 08:57:18 +0800
commit872eec784e2ba1c65ef9e8489a9fc199c4059fc3 (patch)
tree40e30ee980f648ba00b05a9618d29f0556960716 /addressbook/gui/component/select-names
parent17a415bd21dfa41e5ba2b9711a5170d3765d7eac (diff)
downloadgsoc2013-evolution-872eec784e2ba1c65ef9e8489a9fc199c4059fc3.tar
gsoc2013-evolution-872eec784e2ba1c65ef9e8489a9fc199c4059fc3.tar.gz
gsoc2013-evolution-872eec784e2ba1c65ef9e8489a9fc199c4059fc3.tar.bz2
gsoc2013-evolution-872eec784e2ba1c65ef9e8489a9fc199c4059fc3.tar.lz
gsoc2013-evolution-872eec784e2ba1c65ef9e8489a9fc199c4059fc3.tar.xz
gsoc2013-evolution-872eec784e2ba1c65ef9e8489a9fc199c4059fc3.tar.zst
gsoc2013-evolution-872eec784e2ba1c65ef9e8489a9fc199c4059fc3.zip
Fix memory leak.
2001-10-20 Jon Trowbridge <trow@ximian.com> * gui/component/select-names/e-select-names-completion.c (name_style_query): Fix memory leak. * gui/widgets/e-addressbook-view.c (jump_to_letter): Free our string vector letter_v when we are done with it. * gui/contact-editor/e-contact-quick-add.c (edit_card): Unref our QuickAdd structure. * gui/component/e-address-popup.c (e_address_popup_construct): Unref our style after we are done with it. svn path=/trunk/; revision=13835
Diffstat (limited to 'addressbook/gui/component/select-names')
-rw-r--r--addressbook/gui/component/select-names/e-select-names-completion.c5
1 files changed, 4 insertions, 1 deletions
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) {