Skip to content

Commit 608d4fb

Browse files
msmolensalvarosan
authored andcommitted
vtkOpenGLGPUVolumeRayCastMapper: remove unnecessary NULL check before delete
1 parent 18b6e57 commit 608d4fb

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

Rendering/VolumeOpenGL/vtkOpenGLGPUVolumeRayCastMapper.cxx

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -267,11 +267,8 @@ class vtkTextureTable
267267
vtkOpenGLStaticCheckErrorMacro("failed at glDeleteTextures");
268268
this->TextureId=0;
269269
}
270-
if(this->Table!=0)
271-
{
272-
delete[] this->Table;
273-
this->Table=0;
274-
}
270+
delete[] this->Table;
271+
this->Table = 0;
275272
}
276273
bool IsLoaded()const
277274
{

0 commit comments

Comments
 (0)