aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLarry Ewing <lewing@ximian.com>2001-09-18 12:07:04 +0800
committerLarry Ewing <lewing@src.gnome.org>2001-09-18 12:07:04 +0800
commit1e710cd9ea5b40329045e9cb5958f47cf7f79189 (patch)
treee22532c982777a713cad640e642c511ed445f83f
parentd8f6b5758f42a6d6028e52198c8075d096f6c629 (diff)
downloadgsoc2013-evolution-1e710cd9ea5b40329045e9cb5958f47cf7f79189.tar
gsoc2013-evolution-1e710cd9ea5b40329045e9cb5958f47cf7f79189.tar.gz
gsoc2013-evolution-1e710cd9ea5b40329045e9cb5958f47cf7f79189.tar.bz2
gsoc2013-evolution-1e710cd9ea5b40329045e9cb5958f47cf7f79189.tar.lz
gsoc2013-evolution-1e710cd9ea5b40329045e9cb5958f47cf7f79189.tar.xz
gsoc2013-evolution-1e710cd9ea5b40329045e9cb5958f47cf7f79189.tar.zst
gsoc2013-evolution-1e710cd9ea5b40329045e9cb5958f47cf7f79189.zip
don't malloc a match we will never use.
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. svn path=/trunk/; revision=12935
-rw-r--r--addressbook/ChangeLog3
-rw-r--r--addressbook/gui/component/select-names/e-select-names-completion.c2
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 */