| 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.
| |