LibCore: Stop obsessing about tiny OOMs in Core::Timer

Work towards #20405
This commit is contained in:
Andreas Kling 2024-04-16 20:34:01 +02:00
commit 1cb5385a29
Notes: sideshowbarker 2024-07-16 21:39:23 +09:00
52 changed files with 111 additions and 113 deletions

View file

@ -31,7 +31,7 @@ ErrorOr<NonnullOwnPtr<AudioCodecPluginAgnostic>> AudioCodecPluginAgnostic::creat
{
auto duration = timestamp_from_samples(loader->total_samples(), loader->sample_rate());
auto update_timer = TRY(Core::Timer::try_create());
auto update_timer = Core::Timer::create();
update_timer->set_interval(update_interval);
auto plugin = TRY(adopt_nonnull_own_or_enomem(new (nothrow) AudioCodecPluginAgnostic(loader, duration, move(update_timer))));