Index: obj_common.h =================================================================== --- obj_common.h (revision 30962) +++ obj_common.h (revision 30963) @@ -231,7 +231,7 @@ unsigned int noexport:1; \ unsigned int noexport_named:1; \ unsigned int extobj_editing:1; \ - const rnd_color_t *override_color + rnd_color_t *override_color /* Lines, pads, and rats all use this so they can be cross-cast. */ #define PCB_ANYLINEFIELDS \ @@ -278,6 +278,8 @@ /* sets the bounding box of a point */ void pcb_set_point_bounding_box(pcb_point_t *Pnt); +void pcb_obj_common_free(pcb_any_obj_t *o); + /* Determine the size class of a sub-kilobyte object: the largest 2^n that is smaller than the size; size must be at least 16. */ #define pcb_size_class(a) ((a) < 32 ? 16 : ((a) < 64 ? 32 : ((a) < 128 ? 64 : ((a) < 256 ? 128 : ((a) < 512 ? 256 : ((a) < 1024 ? 512 : 1024 ))))))