I bet this is a basic question, still, I can’t seem to understand how this works. :oops:
I created my own newLookAndFeel class. I add it by using the following code:
newLookAndFeel = new NewLookAndFeel();
getLookAndFeel().setDefaultLookAndFeel (newLookAndFeel);
It works without problems, until you add multiple instances of the PlugIn and try to delete one.
How should I proceed with deleting the newLookAndFeel object? If I try on the Editor Destructor, after using getLookAndFeel().setDefaultLookAndFeel (0); - it crashes the other PlugIn Instance. So I’m clearly doing something wrong.
If I never delete newLookAndFeel, everything works, but doesn’t that leave memory leaks?
Any advice would be much appreciated. Thanks.
Wk