From 1e710cd9ea5b40329045e9cb5958f47cf7f79189 Mon Sep 17 00:00:00 2001 From: Larry Ewing Date: Tue, 18 Sep 2001 04:07:04 +0000 Subject: don't malloc a match we will never use. 2001-09-17 Larry Ewing * gui/component/select-names/e-select-names-completion.c (match_nickname): don't malloc a match we will never use. svn path=/trunk/; revision=12935 --- addressbook/ChangeLog | 3 +++ addressbook/gui/component/select-names/e-select-names-completion.c | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/addressbook/ChangeLog b/addressbook/ChangeLog index be945f6bb3..91bbee8eed 100644 --- a/addressbook/ChangeLog +++ b/addressbook/ChangeLog @@ -1,5 +1,8 @@ 2001-09-17 Larry Ewing + * gui/component/select-names/e-select-names-completion.c + (match_nickname): don't malloc a match we will never use. + * gui/widgets/e-addressbook-model.c (get_view): free the dup'd capabilities. 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 ff31e1d42e..8472ffc4d6 100644 --- a/addressbook/gui/component/select-names/e-select-names-completion.c +++ b/addressbook/gui/component/select-names/e-select-names-completion.c @@ -143,7 +143,7 @@ match_nickname (ESelectNamesCompletion *comp, EDestination *dest) if (card->nickname && !g_utf8_strncasecmp (comp->priv->query_text, card->nickname, len)) { - ECompletionMatch *match = g_new0 (ECompletionMatch, 1); + ECompletionMatch *match; gchar *str; score = len * 10; /* nickname gives 10 points per matching character */ -- cgit v1.2.3