Re: Cleaning up allocated memory / resources when deleting plugin
Re: Cleaning up allocated memory / resources when deleting plugin
- Subject: Re: Cleaning up allocated memory / resources when deleting plugin
- From: Darrin Cardani <email@hidden>
- Date: Thu, 10 Feb 2011 09:33:48 -0800
On Feb 10, 2011, at 6:59 AM, Peter T wrote:
> I'm noticing that it's not possible to free-up memory as and when plugins are removed. I do see, for example, that if I add 3 custom plugins, then delete one, I've no way to free the memory for that instance? I am seeing 3 calls to -dealloc for each of my custom plugin objects, so I can cleanup here, but this only when FCP quits?!
>
> Did I miss something, or a trick to cleanup on a plugin-instance basis?
Plug-ins will not be freed when you remove them from footage because they go onto the undo stack. If the user then undoes the removal, we put them back onto the footage. So it's normal that your -dealloc method isn't called when deleting a filter. I believe that if you close the project, you'll also get deallocated. This is all expected.
Darrin
--
Darrin Cardani
email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Pro-apps-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden