* src/matcher.c
authorAlfons Hoogervorst <alfons@proteus.demon.nl>
Sat, 3 Apr 2004 00:20:50 +0000 (00:20 +0000)
committerAlfons Hoogervorst <alfons@proteus.demon.nl>
Sat, 3 Apr 2004 00:20:50 +0000 (00:20 +0000)
free address list

ChangeLog.claws
configure.ac
src/matcher.c

index a1f8b86..f64924e 100644 (file)
@@ -1,3 +1,8 @@
+2004-04-03 [alfons]    0.9.10claws39
+
+       * src/matcher.c
+               free address list
+
 2004-04-03 [alfons]    0.9.10claws38
 
        * src/matcher_parser_parse.y
index c7691e8..236e713 100644 (file)
@@ -11,7 +11,7 @@ MINOR_VERSION=9
 MICRO_VERSION=10
 INTERFACE_AGE=0
 BINARY_AGE=0
-EXTRA_VERSION=38
+EXTRA_VERSION=39
 if test $EXTRA_VERSION -eq 0; then
     VERSION=${MAJOR_VERSION}.${MINOR_VERSION}.${MICRO_VERSION}claws
 else
index 9edb7d2..de1bdea 100644 (file)
@@ -284,6 +284,8 @@ static gboolean match_with_addresses_in_addressbook
        res = FALSE;
        for (walk = address_list; walk != NULL; walk = walk->next) {
                gboolean found = complete_address(walk->data) ? TRUE : FALSE;
+               
+               g_free(walk->data);
                if (!found && type == MATCHTYPE_ALL_IN_ADDRESSBOOK) {
                        res = FALSE;
                        break;
@@ -291,7 +293,10 @@ static gboolean match_with_addresses_in_addressbook
                        res = TRUE;
        }
 
+       g_slist_free(address_list);
+
        end_address_completion();
+       
        return res;
 }