[Mapserver-users] Re: [Mapserver-dev] Perl Mapscript 4 $image->free() bug

Sean Gillies sgillies at frii.com
Wed May 5 13:26:46 PDT 2004


Check.

http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=645

How about do nothing in 4.2 and go away entirely in 4.3?

Sean

Steve Lime wrote:

> I assume then that we should ditch the method in mapscript.i or more
> likely make it benign...
> 
> Steve
> 
> 
>>>>Sean Gillies <sgillies at frii.com> 5/4/2004 4:31:48 PM >>>
> 
> [snip]
> 
> Eric,
> 
> There should be no need to free images.  I've made changes to
> mapscript
> so that Perl's garbage collector sweeps up all instances of imageObj
> and calls the DESTROY method (known as ~imageObj() in mapscript.i).
> In fact, you shouldn't have to explicitly free any objects anymore.
> Sorry that I haven't made this clear in the development docs.
> 
> If you don't want to wait for garbage collection, undef the instance
> rather than calling its free() method.
> 
> cheers,
> Sean
> 





More information about the MapServer-users mailing list