Closed wxtrac closed 2 years ago
Well, no, it doesn't get destroyed -- who has ever said it would? If you had looked at the config sample before filing this bug report you'd have noticed that it deletes this object explicitly.
Reclassified as documentation bug - the wxConfigBase documentation says that the framework destroys it in wxApp::OnExit (No, I didn't look at the sample, just the wxConfig overview and class documentation). Patch attached.
wxconfig_doc.patch
(1.1 KiB)doc patch for wxConfigBase
Sorry, I didn't know/remember about this piece of disinformation in the docs, hence my surprize at your original report.
I've applied the patch to the CVS HEAD, thanks!
Issue migrated from trac ticket # 875
component: documentation | priority: normal
2003-03-20 13:31:39: arkanes created the issue
When using the static access to wxConfig(maps to wxRegConfig) on wxMSW (wxConfig::Get()), it doesn't get destroyed at app end and leaks a couple registry handles.