Updates to various files, replacing delete calls with osgDelete so that
greater debugging info can be gleaned.
This commit is contained in:
@@ -34,16 +34,16 @@ void FieldReaderIterator::_free()
|
||||
// free all data
|
||||
if (_previousField)
|
||||
{
|
||||
delete _previousField;
|
||||
osgDelete _previousField;
|
||||
}
|
||||
if (_fieldQueue)
|
||||
{
|
||||
for(int i=0;i<_fieldQueueCapacity;++i)
|
||||
{
|
||||
if (_fieldQueue[i]) delete _fieldQueue[i];
|
||||
if (_fieldQueue[i]) osgDelete _fieldQueue[i];
|
||||
_fieldQueue[i] = NULL;
|
||||
}
|
||||
delete [] _fieldQueue;
|
||||
osgDelete [] _fieldQueue;
|
||||
}
|
||||
_init();
|
||||
|
||||
@@ -258,7 +258,7 @@ FieldReaderIterator& FieldReaderIterator::operator += (int no)
|
||||
{
|
||||
_fieldQueue[_fieldQueueSize+i] = tmpFields[i];
|
||||
}
|
||||
delete [] tmpFields;
|
||||
osgDelete [] tmpFields;
|
||||
}
|
||||
return *this;
|
||||
}
|
||||
|
||||
@@ -294,7 +294,7 @@ char *osgDB::findDSO( const char *name )
|
||||
strcat(prependosgPlugins,name);
|
||||
|
||||
fileFound = findFileInPath( prependosgPlugins , path );
|
||||
delete [] prependosgPlugins;
|
||||
osgDelete [] prependosgPlugins;
|
||||
|
||||
return fileFound;
|
||||
#else // defined macintosh
|
||||
|
||||
@@ -25,7 +25,7 @@ class RegistryPtr
|
||||
RegistryPtr() : _ptr(0L) {}
|
||||
RegistryPtr(Registry* t): _ptr(t) {}
|
||||
RegistryPtr(const RegistryPtr& rp):_ptr(rp._ptr) { }
|
||||
~RegistryPtr() { if (_ptr) delete _ptr; _ptr=0L; }
|
||||
~RegistryPtr() { if (_ptr) osgDelete _ptr; _ptr=0L; }
|
||||
|
||||
inline Registry* get() { return _ptr; }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user