MCPcopy Index your code
hub / github.com/MapServer/MapServer / msCleanup

Function msCleanup

maputil.c:1815–1861  ·  view source on GitHub ↗

This is intended to be a function to cleanup anything that "hangs around" when all maps are destroyed, like Registered GDAL drivers, and so forth. */

Source from the content-addressed store, hash-verified

1813/* This is intended to be a function to cleanup anything that "hangs around"
1814 when all maps are destroyed, like Registered GDAL drivers, and so forth. */
1815void msCleanup()
1816{
1817 msForceTmpFileBase( NULL );
1818 msConnPoolFinalCleanup();
1819 /* Lexer string parsing variable */
1820 if (msyystring_buffer != NULL)
1821 {
1822 msFree(msyystring_buffer);
1823 msyystring_buffer = NULL;
1824 }
1825 msyylex_destroy();
1826
1827#ifdef USE_OGR
1828 msOGRCleanup();
1829#endif
1830#ifdef USE_GDAL
1831 msGDALCleanup();
1832#endif
1833#ifdef USE_PROJ
1834# if PJ_VERSION >= 480
1835 pj_clear_initcache();
1836# endif
1837 pj_deallocate_grids();
1838 msSetPROJ_LIB( NULL, NULL );
1839#endif
1840#if defined(USE_CURL)
1841 msHTTPCleanup();
1842#endif
1843
1844#ifdef USE_GD_FT
1845 gdFontCacheShutdown();
1846#endif
1847
1848#ifdef USE_GEOS
1849 msGEOSCleanup();
1850#endif
1851
1852 msIO_Cleanup();
1853
1854 msResetErrorList();
1855
1856 /* Close/cleanup log/debug output. Keep this at the very end. */
1857 msDebugCleanup();
1858
1859 /* Clean up the vtable factory */
1860 msPluginFreeVirtualTableFactory();
1861}
1862
1863/************************************************************************/
1864/* msAlphaBlend() */

Callers 7

writeErrorFunction · 0.85
msCleanupOnSignalFunction · 0.85
msCleanupOnExitFunction · 0.85
mainFunction · 0.85
ifFunction · 0.85
mainFunction · 0.85
php_mapscript.cFile · 0.85

Calls 13

msForceTmpFileBaseFunction · 0.85
msConnPoolFinalCleanupFunction · 0.85
msFreeFunction · 0.85
msyylex_destroyFunction · 0.85
msOGRCleanupFunction · 0.85
msGDALCleanupFunction · 0.85
msSetPROJ_LIBFunction · 0.85
msHTTPCleanupFunction · 0.85
msGEOSCleanupFunction · 0.85
msIO_CleanupFunction · 0.85
msResetErrorListFunction · 0.85
msDebugCleanupFunction · 0.85

Tested by

no test coverage detected