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. */
| 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. */ |
| 1815 | void 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() */ |
no test coverage detected