Tag: cws_src680_aquavcl05 User: ericb Date: 2008-01-29 09:10:01+0000 Modified: dba/connectivity/source/drivers/macab/MacabRecord.cxx
Log: #i83707# fix potential crash. Fixes proposed by P. Luby File Changes: Directory: /dba/connectivity/source/drivers/macab/ ================================================== File [changed]: MacabRecord.cxx Url: http://dba.openoffice.org/source/browse/dba/connectivity/source/drivers/macab/MacabRecord.cxx?r1=1.2&r2=1.2.74.1 Delta lines: +6 -4 ------------------- --- MacabRecord.cxx 2007-09-13 17:53:20+0000 1.2 +++ MacabRecord.cxx 2008-01-29 09:09:59+0000 1.2.74.1 @@ -4,9 +4,9 @@ * * $RCSfile: MacabRecord.cxx,v $ * - * $Revision: 1.2 $ + * $Revision: 1.2.74.1 $ * - * last change: $Author: ihi $ $Date: 2007/09/13 17:53:20 $ + * last change: $Author: ericb $ $Date: 2008/01/29 09:09:59 $ * * The Contents of this file are made available subject to * the terms of GNU Lesser General Public License Version 2.1. @@ -101,6 +101,7 @@ fields[_column] = new macabfield; fields[_column]->value = _value; + if (fields[_column]->value) CFRetain(fields[_column]->value); fields[_column]->type = _type; } @@ -151,6 +152,7 @@ macabfield *_copy = new macabfield; _copy->type = fields[i]->type; _copy->value = fields[i]->value; + if (_copy->value) CFRetain(_copy->value); return _copy; } --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
