2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-31 14:45:14 +00:00

Fix Media::Audio::Instance destruction.

This commit is contained in:
John Preston
2019-02-01 10:09:55 +03:00
parent 918d58ef0a
commit b28e374e06
6 changed files with 35 additions and 26 deletions

View File

@@ -36,18 +36,18 @@ constexpr auto kIdsPreloadAfter = 28;
} // namespace
void start() {
Audio::Start();
void start(not_null<Audio::Instance*> instance) {
Audio::Start(instance);
Capture::Start();
SingleInstance = new Instance();
}
void finish() {
void finish(not_null<Audio::Instance*> instance) {
delete base::take(SingleInstance);
Capture::Finish();
Audio::Finish();
Audio::Finish(instance);
}
Instance::Instance()