| 417 | /************************************************************************/ |
| 418 | |
| 419 | void msFreeOutputFormat( outputFormatObj *format ) |
| 420 | |
| 421 | { |
| 422 | if( format == NULL ) |
| 423 | return; |
| 424 | if(MS_RENDERER_PLUGIN(format) && format->vtable) { |
| 425 | format->vtable->cleanup(MS_RENDERER_CACHE(format->vtable)); |
| 426 | free( format->vtable ); |
| 427 | } |
| 428 | msFree( format->name ); |
| 429 | msFree( format->mimetype ); |
| 430 | msFree( format->driver ); |
| 431 | msFree( format->extension ); |
| 432 | msFreeCharArray( format->formatoptions, format->numformatoptions ); |
| 433 | msFree( format ); |
| 434 | } |
| 435 | |
| 436 | /************************************************************************/ |
| 437 | /* msAllocOutputFormat() */ |
no test coverage detected