MCPcopy Create free account
hub / github.com/NVIDIA/cuda-samples / cleanup

Function cleanup

cpp/4_CUDA_Libraries/randomFog/randomFog.cpp:366–384  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

364}
365
366void cleanup(int code)
367{
368 if (g_pRng) {
369 delete g_pRng;
370 g_pRng = NULL;
371 }
372
373 if (g_pVertices) {
374 delete[] g_pVertices;
375 g_pVertices = NULL;
376 }
377
378 if (g_pCheckRender) {
379 delete g_pCheckRender;
380 g_pCheckRender = NULL;
381 }
382
383 exit(code);
384}
385
386void glutClose() { cleanup(EXIT_SUCCESS); }
387

Callers 2

glutCloseFunction · 0.70
mainFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected