Update of /cvsroot/mahogany/M/src/adb
In directory usw-pr-cvs1:/tmp/cvs-serv7609/src/adb

Modified Files:
        AdbManager.cpp 
Log Message:
fixed memory leak when expanding addresses and also made it finally work as expected 
(fall back to matches anywhere if no nick name match was found)

Index: AdbManager.cpp
===================================================================
RCS file: /cvsroot/mahogany/M/src/adb/AdbManager.cpp,v
retrieving revision 1.34
retrieving revision 1.35
diff -b -u -2 -r1.34 -r1.35
--- AdbManager.cpp      29 Apr 2002 00:00:53 -0000      1.34
+++ AdbManager.cpp      4 Jul 2002 14:01:03 -0000       1.35
@@ -67,4 +67,6 @@
 
 // search in the books specified or in all loaded books otherwise
+//
+// return true if anything was found, false otherwise
 static bool AdbLookupForEntriesOrGroups(
                                         ArrayAdbEntries& aEntries,
@@ -192,5 +194,7 @@
 
   // return true if something found
-  return !aEntries.IsEmpty() || (aGroups && !aGroups->IsEmpty());
+  return !aEntries.IsEmpty() ||
+         (aMoreEntries && !aMoreEntries->IsEmpty()) ||
+         (aGroups && !aGroups->IsEmpty());
 }
 



-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Caffeinated soap. No kidding.
http://thinkgeek.com/sf
_______________________________________________
Mahogany-cvsupdates mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/mahogany-cvsupdates

Reply via email to