I try to release memory allocated by LoggerSetting, but the destructor is private method. Is there any way to release it without modify source?
LoggerSetting is a singleton because it provides state information to the debug print system used throughout the AllJoyn code base. That state information must persist over the lifetime of the program. If you were to destroy LoggerSetting too soon, you'd crash AllJoyn code.
For the upcoming 14.12 release there is a new static member function in LoggerSetting called Cleanup() which may be called just prior to your program exiting that will destroy the LoggerSetting singleton. Do be careful in calling that as it should only be called once and only after all AllJoyn code has stopped and your application is about to exit.
© 2014 AllSeen Alliance, Inc. All Rights Reserved.
Linux Foundation is a registered trademark of The Linux Foundation. AllSeen and AllSeen Alliance are trademarks of the AllSeen Alliance, Inc.
Linux is a registered trademark of Linus Torvalds.