Skip to content

Commit

Permalink
delete allocated objects
Browse files Browse the repository at this point in the history
  • Loading branch information
sloriot committed Apr 4, 2024
1 parent 45d4d79 commit 884f71c
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions Basic_viewer/include/CGAL/Qt/Basic_viewer.h
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,14 @@ class Basic_viewer : public CGAL::QGLViewer

for (unsigned int i=0; i<NB_VAO_BUFFERS; ++i)
vao[i].destroy();

Q_FOREACH(QOpenGLShader* shader, rendering_program_p_l.shaders())
delete shader;
Q_FOREACH(QOpenGLShader* shader, rendering_program_face.shaders())
delete shader;
Q_FOREACH(QOpenGLShader* shader, rendering_program_clipping_plane.shaders())
delete shader;
delete m_frame_plane;
}

void draw_vertices(bool b)
Expand Down

0 comments on commit 884f71c

Please sign in to comment.