| 150 | } |
| 151 | |
| 152 | void 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 | |
| 172 | void msFreeLabelPathObj(labelPathObj *path) |
| 173 | { |
no test coverage detected