aboutsummaryrefslogtreecommitdiffstats
path: root/addressbook/gui
diff options
context:
space:
mode:
authorLarry Ewing <lewing@ximian.com>2001-09-18 13:11:31 +0800
committerLarry Ewing <lewing@src.gnome.org>2001-09-18 13:11:31 +0800
commitf774ea81e5d3e2607da601eeaf1b875dbe5b259a (patch)
treea5d05b888a2defa080f5b3e3c229c30055724828 /addressbook/gui
parent1e710cd9ea5b40329045e9cb5958f47cf7f79189 (diff)
downloadgsoc2013-evolution-f774ea81e5d3e2607da601eeaf1b875dbe5b259a.tar.gz
gsoc2013-evolution-f774ea81e5d3e2607da601eeaf1b875dbe5b259a.tar.zst
gsoc2013-evolution-f774ea81e5d3e2607da601eeaf1b875dbe5b259a.zip
use g_strfreev. (match_name): s/g_free/g_strfreev. (match_file_as):
2001-09-17 Larry Ewing <lewing@ximian.com> * gui/component/select-names/e-select-names-completion.c (name_style_query): use g_strfreev. (match_name): s/g_free/g_strfreev. (match_file_as): s/g_free/g_strfreev. * backend/ebook/e-book-util.c (e_book_name_and_email_query): fix the memory handling here. All there members of the vector need to be freed all the time. * backend/ebook/load-pine-addressbook.c (parse_line): free the string outside of the test that makes sure there are three entries. svn path=/trunk/; revision=12936
Diffstat (limited to 'addressbook/gui')
-rw-r--r--addressbook/gui/component/select-names/e-select-names-completion.c9
1 files changed, 3 insertions, 6 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 8472ffc4d6..0a34361c62 100644
--- a/addressbook/gui/component/select-names/e-select-names-completion.c
+++ b/addressbook/gui/component/select-names/e-select-names-completion.c
@@ -231,11 +231,8 @@ name_style_query (ESelectNamesCompletion *comp, const gchar *field)
g_free (joined);
}
- for (i=0; strv[i]; ++i)
- g_free (strv[i]);
g_free (cpy);
- g_free (strv);
-
+ g_strfreev (strv);
return query;
}
@@ -344,7 +341,7 @@ match_name (ESelectNamesCompletion *comp, EDestination *dest)
}
g_free (cpy);
- g_free (strv);
+ g_strfreev (strv);
score = match_len * 3; /* three points per match character */
@@ -454,7 +451,7 @@ match_file_as (ESelectNamesCompletion *comp, EDestination *dest)
}
g_free (cpy);
- g_free (strv);
+ g_strfreev (strv);
if (!matched)
return NULL;