Selected USE_NEW_DELETE allocation mode to fix memory leak
This commit is contained in:
parent
46505f66d3
commit
47207248d4
@ -267,8 +267,7 @@ class ReaderWriterJP2 : public osgDB::ReaderWriter
|
|||||||
pixelFormat,
|
pixelFormat,
|
||||||
dataType,
|
dataType,
|
||||||
data,
|
data,
|
||||||
// osg::Image::USE_NEW_DELETE);
|
osg::Image::USE_NEW_DELETE);
|
||||||
osg::Image::NO_DELETE);
|
|
||||||
|
|
||||||
OSG_INFO << "image read ok "<<s<<" "<<t<< std::endl;
|
OSG_INFO << "image read ok "<<s<<" "<<t<< std::endl;
|
||||||
return image;
|
return image;
|
||||||
@ -334,8 +333,7 @@ class ReaderWriterJP2 : public osgDB::ReaderWriter
|
|||||||
pixelFormat,
|
pixelFormat,
|
||||||
dataType,
|
dataType,
|
||||||
data,
|
data,
|
||||||
// osg::Image::USE_NEW_DELETE);
|
osg::Image::USE_NEW_DELETE);
|
||||||
osg::Image::NO_DELETE);
|
|
||||||
|
|
||||||
OSG_INFO << "image read ok "<<s<<" "<<t<< std::endl;
|
OSG_INFO << "image read ok "<<s<<" "<<t<< std::endl;
|
||||||
return image;
|
return image;
|
||||||
|
Loading…
Reference in New Issue
Block a user