1
0
mirror of https://github.com/cookiengineer/audacity synced 2026-01-18 14:36:13 +01:00

Make static "Destroy" methods for certain singletons unnecessary.

This commit is contained in:
Paul Licameli
2016-04-06 14:42:36 -04:00
parent c9d50dc20b
commit df5fcc3581
9 changed files with 18 additions and 44 deletions

View File

@@ -51,9 +51,6 @@ class DeviceManager final
/// Gets the singleton instance
static DeviceManager* Instance();
/// Releases memory assosiated with the singleton
static void Destroy();
/// Gets a NEW list of devices by terminating and restarting portaudio
/// Assumes that DeviceManager is only used on the main thread.
void Rescan();
@@ -74,7 +71,7 @@ class DeviceManager final
protected:
//private constructor - Singleton.
DeviceManager();
virtual ~DeviceManager();
~DeviceManager();
/// Does an initial scan.
/// Called by GetInputDeviceMaps and GetOutputDeviceMaps when needed.
void Init();