Opened 20 years ago

Closed 20 years ago

#645 closed defect (fixed)

Drop free method of imageObj class

Reported by: sgillies@… Owned by: sgillies@…
Priority: high Milestone:
Component: MapScript-SWIG Version: 4.2
Severity: normal Keywords:
Cc:

Description

It's no longer needed and is confusing users who should instead delete or
undef the image or let their interpreter's garbage collector get it.

Change History (2)

comment:1 by sdlime, 20 years ago

When did you make the change to the class destructor? If it was since 4.0 then 
I think we should change the free method to do nothing, but leave it in place. 
Otherwise scripts will break in a bad way. I'd rather see "class not found" 
messages than seg faults. Then for 4.3/4.4 we should remove it altogether.

Steve

comment:2 by sgillies@…, 20 years ago

Resolution: fixed
Status: newclosed
imageObj.free() is gone in 4.3.  Does nothing in 4.2, and I have
also brought attention of the change to leading Perl users.

Note: See TracTickets for help on using tickets.