From 4313cde440d20f6070951709c83c695fda523b54 Mon Sep 17 00:00:00 2001 From: helge Date: Thu, 3 Aug 2006 00:14:03 +0000 Subject: [PATCH] fixed a bug in result handling of SAX parser (make a copy of results) git-svn-id: http://svn.opengroupware.org/SOPE/trunk@1330 e4a50df8-12e2-0310-a44c-efbce7f8a7e3 --- sope-ical/NGiCal/ChangeLog | 7 +++++++ sope-ical/NGiCal/NGVCardSaxHandler.m | 2 +- sope-ical/NGiCal/Version | 2 +- 3 files changed, 9 insertions(+), 2 deletions(-) diff --git a/sope-ical/NGiCal/ChangeLog b/sope-ical/NGiCal/ChangeLog index e2f4e952..9a889262 100644 --- a/sope-ical/NGiCal/ChangeLog +++ b/sope-ical/NGiCal/ChangeLog @@ -1,3 +1,10 @@ +2006-08-03 Helge Hess + + * 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 * use %p for pointer formats, fixed gcc 4.1 warnings (v4.5.75) diff --git a/sope-ical/NGiCal/NGVCardSaxHandler.m b/sope-ical/NGiCal/NGVCardSaxHandler.m index 726517e1..09a85997 100644 --- a/sope-ical/NGiCal/NGVCardSaxHandler.m +++ b/sope-ical/NGiCal/NGVCardSaxHandler.m @@ -62,7 +62,7 @@ /* results */ - (NSArray *)vCards { - return self->vCards; + return self->vCards != nil ? [NSArray arrayWithArray:self->vCards] : nil; } /* state */ diff --git a/sope-ical/NGiCal/Version b/sope-ical/NGiCal/Version index 6667c103..dbc6c2d3 100644 --- a/sope-ical/NGiCal/Version +++ b/sope-ical/NGiCal/Version @@ -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 -- 2.39.5