summaryrefslogtreecommitdiff
path: root/Applications/SoundPlayer/main.cpp
diff options
context:
space:
mode:
authorAndreas Kling <awesomekling@gmail.com>2019-09-20 15:19:46 +0200
committerAndreas Kling <awesomekling@gmail.com>2019-09-20 15:20:10 +0200
commit50a65604130f9c0aea46799231e88ac956ac018b (patch)
tree18313ba97554de907a855f9351816b9c226cae8a /Applications/SoundPlayer/main.cpp
parentc34fd10b5bcf1e692cd609b5b156abd70624f7b7 (diff)
downloadserenity-50a65604130f9c0aea46799231e88ac956ac018b.zip
LibCore: Convert CTimer to ObjectPtr
Diffstat (limited to 'Applications/SoundPlayer/main.cpp')
-rw-r--r--Applications/SoundPlayer/main.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Applications/SoundPlayer/main.cpp b/Applications/SoundPlayer/main.cpp
index 4fe842dfe8..3df9522139 100644
--- a/Applications/SoundPlayer/main.cpp
+++ b/Applications/SoundPlayer/main.cpp
@@ -52,7 +52,7 @@ int main(int argc, char** argv)
auto next_sample_buffer = loader.get_more_samples();
- new CTimer(100, [&] {
+ auto timer = CTimer::create(100, [&] {
if (!next_sample_buffer) {
sample_widget->set_buffer(nullptr);
return;