diff options
Diffstat (limited to 'addressbook')
-rw-r--r-- | addressbook/ChangeLog | 3 | ||||
-rw-r--r-- | addressbook/gui/component/select-names/e-select-names-completion.c | 2 |
2 files changed, 4 insertions, 1 deletions
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 <lewing@ximian.com> + * 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 */ |