MCPcopy Create free account
hub / github.com/VirtualGL/virtualgl / cleanup

Function cleanup

server/faker.cpp:55–69  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

53
54
55static void cleanup(void)
56{
57 if(PixmapHash::isAlloc()) PMHASH.kill();
58 if(VisualHash::isAlloc()) VISHASH.kill();
59 if(ContextHash::isAlloc()) CTXHASH.kill();
60 if(GLXDrawableHash::isAlloc()) GLXDHASH.kill();
61 if(WindowHash::isAlloc()) WINHASH.kill();
62 if(EGLXDisplayHash::isAlloc()) EGLXDPYHASH.kill();
63 if(EGLXWindowHash::isAlloc()) EGLXWINHASH.kill();
64 if(backend::ContextHashEGL::isAlloc()) CTXHASHEGL.kill();
65 if(backend::PbufferHashEGL::isAlloc()) PBHASHEGL.kill();
66 if(backend::RBOContext::isAlloc()) RBOCONTEXT.kill();
67 free(glExtensions);
68 unloadSymbols();
69}
70
71
72void safeExit(int retcode)

Callers 1

safeExitFunction · 0.85

Calls 2

unloadSymbolsFunction · 0.85
killMethod · 0.45

Tested by

no test coverage detected