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

Function mapscript_shape_object_destroy

mapscript/php/shape.c:1257–1272  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1255}
1256
1257static void mapscript_shape_object_destroy(void *object TSRMLS_DC)
1258{
1259 php_shape_object *php_shape = (php_shape_object *)object;
1260
1261 MAPSCRIPT_FREE_OBJECT(php_shape);
1262
1263 MAPSCRIPT_FREE_PARENT(php_shape->parent);
1264 MAPSCRIPT_DELREF(php_shape->bounds);
1265 MAPSCRIPT_DELREF(php_shape->values);
1266
1267 if (php_shape->shape && !php_shape->is_ref) {
1268 shapeObj_destroy(php_shape->shape);
1269 }
1270
1271 efree(object);
1272}
1273
1274static zend_object_value mapscript_shape_object_new(zend_class_entry *ce TSRMLS_DC)
1275{

Callers

nothing calls this directly

Calls 1

shapeObj_destroyFunction · 0.85

Tested by

no test coverage detected