Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Michael Migliore
VTK
Commits
3f13424c
Commit
3f13424c
authored
Aug 17, 2010
by
Julien Finet
Committed by
Marcus D. Hanwell
Aug 22, 2010
Browse files
BUG: Fix memory leaks found using dynamic analysis
parent
775065d2
Changes
3
Hide whitespace changes
Inline
Side-by-side
Charts/vtkColorTransferFunctionItem.cxx
View file @
3f13424c
...
...
@@ -110,7 +110,7 @@ void vtkColorTransferFunctionItem::ComputeTexture()
values
,
reinterpret_cast
<
unsigned
char
*>
(
this
->
Texture
->
GetScalarPointer
(
0
,
0
,
0
)),
VTK_DOUBLE
,
dimension
,
1
,
4
);
delete
values
;
delete
[]
values
;
}
//-----------------------------------------------------------------------------
...
...
Charts/vtkCompositeTransferFunctionItem.cxx
View file @
3f13424c
...
...
@@ -131,7 +131,7 @@ void vtkCompositeTransferFunctionItem::ComputeTexture()
ptr
+=
4
;
}
}
delete
values
;
delete
[]
values
;
}
//-----------------------------------------------------------------------------
...
...
Charts/vtkOpenGLContextDevice2D.cxx
View file @
3f13424c
...
...
@@ -551,7 +551,7 @@ void vtkOpenGLContextDevice2D::DrawQuad(float *f, int n)
glDisableClientState
(
GL_TEXTURE_COORD_ARRAY
);
this
->
Storage
->
Texture
->
PostRender
(
this
->
Renderer
);
glDisable
(
GL_TEXTURE_2D
);
delete
texCoord
;
delete
[]
texCoord
;
}
}
...
...
@@ -580,7 +580,7 @@ void vtkOpenGLContextDevice2D::DrawPolygon(float *f, int n)
glDisableClientState
(
GL_TEXTURE_COORD_ARRAY
);
this
->
Storage
->
Texture
->
PostRender
(
this
->
Renderer
);
glDisable
(
GL_TEXTURE_2D
);
delete
texCoord
;
delete
[]
texCoord
;
}
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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