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

Function msFreeShape

mapprimitive.c:152–170  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

150}
151
152void msFreeShape(shapeObj *shape)
153{
154 int c;
155
156 if(!shape) return; /* for safety */
157
158 for (c= 0; c < shape->numlines; c++)
159 free(shape->line[c].point);
160
161 if (shape->line) free(shape->line);
162 if(shape->values) msFreeCharArray(shape->values, shape->numvalues);
163 if(shape->text) free(shape->text);
164
165#ifdef USE_GEOS
166 msGEOSFreeGeometry(shape);
167#endif
168
169 msInitShape(shape); /* now reset */
170}
171
172void msFreeLabelPathObj(labelPathObj *path)
173{

Callers 15

msDrawTransformedShapeFunction · 0.85
msFreeQueryFunction · 0.85
msQueryByIndexFunction · 0.85
msQueryByAttributesFunction · 0.85
msQueryByFilterFunction · 0.85
msQueryByRectFunction · 0.85
msQueryByFeaturesFunction · 0.85
msQueryByPointFunction · 0.85
msQueryByShapeFunction · 0.85
msDrawVectorLayerFunction · 0.85
msDrawQueryLayerFunction · 0.85

Calls 3

msFreeCharArrayFunction · 0.85
msGEOSFreeGeometryFunction · 0.85
msInitShapeFunction · 0.85

Tested by

no test coverage detected