msPluginFreeVirtualTableFactory() ** Called by msCleanup() to free the virtual table factory */
| 204 | ** Called by msCleanup() to free the virtual table factory |
| 205 | */ |
| 206 | void |
| 207 | msPluginFreeVirtualTableFactory() |
| 208 | { |
| 209 | int i; |
| 210 | msAcquireLock(TLOCK_LAYER_VTABLE); |
| 211 | |
| 212 | for (i=0; i<gVirtualTableFactory.size; i++) { |
| 213 | if (gVirtualTableFactory.vtItems[i]) |
| 214 | destroyVTFItem(&(gVirtualTableFactory.vtItems[i])); |
| 215 | } |
| 216 | free(gVirtualTableFactory.vtItems); |
| 217 | gVirtualTableFactory.vtItems = NULL; |
| 218 | gVirtualTableFactory.size = 0; |
| 219 | gVirtualTableFactory.first_free = 0; |
| 220 | |
| 221 | msReleaseLock(TLOCK_LAYER_VTABLE); |
| 222 | } |
no test coverage detected