Skip to content

Commit 8cbdf24

Browse files
merlinNDnmwsharp
authored andcommitted
Clear callbacks at shutdown
1 parent 0ff26c2 commit 8cbdf24

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/polyscope.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1175,6 +1175,9 @@ void shutdown(bool allowMidFrameShutdown) {
11751175
removeAllSlicePlanes();
11761176
clearMessages();
11771177
state::userCallback = nullptr;
1178+
options::configureImGuiStyleCallback = nullptr;
1179+
options::prepareImGuiFontsCallback = nullptr;
1180+
options::filesDroppedCallback = nullptr;
11781181

11791182
// Shut down the render engine
11801183
render::engine->shutdown();

0 commit comments

Comments
 (0)