User: kz      
Date: 2008-03-05 16:38:53+0000
Modified:
   dba/connectivity/source/drivers/macab/MacabRecord.cxx

Log:
 INTEGRATION: CWS aquavcl05_DEV300 (1.2.74); FILE MERGED
 2008/01/29 09:09:59 ericb 1.2.74.1: #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.3
Delta lines:  +7 -5
-------------------
--- MacabRecord.cxx     2007-09-13 17:53:20+0000        1.2
+++ MacabRecord.cxx     2008-03-05 16:38:50+0000        1.3
@@ -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]

Reply via email to