1
0
mirror of https://github.com/cookiengineer/audacity synced 2026-01-01 09:28:38 +01:00

Bug 2228: crash closing, only Linux, gcc, opt, wxWidgets 3.0...

... Not the most satisfactory fix, but in fact no dangling pointers will
happen with the code we have now, because the relevant windows are all destroyed
only at the end of AudacityProject's lifetime, including the non-modal windows
(macros, history, lyrics, mixer board, plot spectrum, and contrast) which
are hidden and shown again, not destroyed and recreated, when dismissed and
reopened.

To do:  figure out how to make wxWeakRef work on that combination without
crashing.
This commit is contained in:
Paul Licameli
2019-10-15 18:38:41 -04:00
parent b2e7350587
commit cfbffe6d54
5 changed files with 2639 additions and 1 deletions

View File

@@ -32,6 +32,9 @@ struct AUDACITY_DLL_API Base
// (unique_ptr has two, the second is defaulted)
template< typename Object > using UniquePtr = std::unique_ptr< Object >;
// Risk of dangling pointers, so be careful
template< typename Object > using BarePtr = Object*;
// A convenient base class defining abstract virtual Clone() for a given kind
// of pointer
template<