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

Function msFreeMapServObj

maptemplate.c:4509–4534  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4507}
4508
4509void msFreeMapServObj(mapservObj* mapserv)
4510{
4511 int i;
4512
4513 if(mapserv) {
4514 if( mapserv->map )
4515 {
4516 msFreeMap(mapserv->map);
4517 mapserv->map = NULL;
4518 }
4519
4520 if( mapserv->request )
4521 {
4522 msFreeCgiObj(mapserv->request);
4523 mapserv->request = NULL;
4524 }
4525
4526 for(i=0;i<mapserv->NumLayers;i++)
4527 msFree(mapserv->Layers[i]);
4528 msFree(mapserv->Layers);
4529
4530 msFree(mapserv->icon);
4531
4532 msFree(mapserv);
4533 }
4534}
4535
4536/*
4537** Ensure there is at least one free entry in the Layers array.

Callers 7

writeErrorFunction · 0.85
mainFunction · 0.85
msProcessTemplateFunction · 0.85
msProcessLegendTemplateFunction · 0.85
msProcessQueryTemplateFunction · 0.85
msWMSFeatureInfoFunction · 0.85
msWFSGetFeatureFunction · 0.85

Calls 3

msFreeMapFunction · 0.85
msFreeCgiObjFunction · 0.85
msFreeFunction · 0.85

Tested by

no test coverage detected