Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Gepetto
OpenSceneGraph
Commits
d5225ea5
Commit
d5225ea5
authored
Jul 09, 2020
by
Robert Osfield
Browse files
Selected USE_NEW_DELETE allocation mode to fix memory leak
parent
63bb5371
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/osgPlugins/jp2/ReaderWriterJP2.cpp
View file @
d5225ea5
...
...
@@ -267,8 +267,7 @@ class ReaderWriterJP2 : public osgDB::ReaderWriter
pixelFormat
,
dataType
,
data
,
// osg::Image::USE_NEW_DELETE);
osg
::
Image
::
NO_DELETE
);
osg
::
Image
::
USE_NEW_DELETE
);
OSG_INFO
<<
"image read ok "
<<
s
<<
" "
<<
t
<<
std
::
endl
;
return
image
;
...
...
@@ -334,8 +333,7 @@ class ReaderWriterJP2 : public osgDB::ReaderWriter
pixelFormat
,
dataType
,
data
,
// osg::Image::USE_NEW_DELETE);
osg
::
Image
::
NO_DELETE
);
osg
::
Image
::
USE_NEW_DELETE
);
OSG_INFO
<<
"image read ok "
<<
s
<<
" "
<<
t
<<
std
::
endl
;
return
image
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment