dealloc not called for FxPlug
dealloc not called for FxPlug
- Subject: dealloc not called for FxPlug
- From: Daniel Walz <email@hidden>
- Date: Mon, 22 May 2017 13:47:33 +0100
Hi everybody,
I have a FxGenerator plugin and I allocate a C++ class in the init method. I test that in a project with one instance on the timeline. I get two calls to init (using NSLog debugging), but only one dealloc when closing Final Cut, hence my LeakDetector goes off.
Maybe it is due to my limited ObjC knowledge, this is my first ObjC project...
Is there something I did wrong? Or is it a FinalCut mistake?
Here is the relevant code:
- (id)initWithAPIManager:(id)apiManager
{
(void)@protocol(MyFxPlugRegistration);
self = [super init];
_apiManager = apiManager;
_registeredPlugin = YES;
themeLibrary = [[ThemeLibrary alloc] init];
NSLog (@"created MyFxPlug");
return self;
}
- (void)dealloc
{
NSLog (@"dealloc MyFxPlug");
// Clean up
[themeLibrary dealloc];
[super dealloc];
}
Thanks for helping,
Daniel
_______________________________________________
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