| 1255 | } |
| 1256 | |
| 1257 | static 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 | |
| 1274 | static zend_object_value mapscript_shape_object_new(zend_class_entry *ce TSRMLS_DC) |
| 1275 | { |
nothing calls this directly
no test coverage detected