Forums | Admin

Discussion Forums: help

Start New Thread Start New Thread
Message: 96883
BY: Como Pasta (comopasta)
DATE: 2011-08-15 19:06
SUBJECT: RE: Memory leak in conversion script?

 

This is old stuff but so valid.

I'm doing the next thing:

image = Image.read(pdf_url){ self.density = 300 }[0]
image.format = "png"
return image

So I have a module with a function that includes this code. It converts a pdf to png and the calling function uses send_data image.to_blob

But how can I call image.destroy! after returning?

Thanks.



Thread View

Thread Author Date
Memory leak in conversion script?Ronald Pijnacker2008-04-21 18:06
      RE: Memory leak in conversion script?Tim Hunter2008-04-21 18:16
            RE: Memory leak in conversion script?Ronald Pijnacker2008-04-24 09:16
            RE: Memory leak in conversion script?Como Pasta2011-08-15 19:06

Post a followup to this message