]> err.no Git - sope/commitdiff
fixed a bug in result handling of SAX parser (make a copy of results)
authorhelge <helge@e4a50df8-12e2-0310-a44c-efbce7f8a7e3>
Thu, 3 Aug 2006 00:14:03 +0000 (00:14 +0000)
committerhelge <helge@e4a50df8-12e2-0310-a44c-efbce7f8a7e3>
Thu, 3 Aug 2006 00:14:03 +0000 (00:14 +0000)
git-svn-id: http://svn.opengroupware.org/SOPE/trunk@1330 e4a50df8-12e2-0310-a44c-efbce7f8a7e3

sope-ical/NGiCal/ChangeLog
sope-ical/NGiCal/NGVCardSaxHandler.m
sope-ical/NGiCal/Version

index e2f4e952ccd9f0689eab8348f812d0ca98553307..9a889262896f2847992f24bfbbeef4d6ba306843 100644 (file)
@@ -1,3 +1,10 @@
+2006-08-03  Helge Hess  <helge.hess@opengroupware.org>
+
+       * NGVCardSaxHandler.m: fixed a bug with returning parsing results.
+         Properly make a copy of the vCard array so that -clear doesn't
+         destroy references. Thanks go to Wolfgang Sourdeau for documenting
+         the issue! (v4.5.76)
+
 2006-07-04  Helge Hess  <helge.hess@opengroupware.org>
 
        * use %p for pointer formats, fixed gcc 4.1 warnings (v4.5.75)
index 726517e190c6cc3df3e9f2cb3ad5fa41cb77131c..09a859972b970ae9ff5cc2d87816fd3f4b58ab73 100644 (file)
@@ -62,7 +62,7 @@
 /* results */
 
 - (NSArray *)vCards {
-  return self->vCards;
+  return self->vCards != nil ? [NSArray arrayWithArray:self->vCards] : nil;
 }
 
 /* state */
index 6667c10355c12482862a0313ca62b60297efd683..dbc6c2d3ca52d71ac25eb9ecd2adf90adaceae53 100644 (file)
@@ -2,7 +2,7 @@
 
 MAJOR_VERSION=4
 MINOR_VERSION=5
-SUBMINOR_VERSION:=75
+SUBMINOR_VERSION:=76
 
 # v4.5.40 requires NGExtensions v4.5.145
 # v4.5.37 requires NGExtensions v4.5.140