Improve use of NeverDestroyed
[WebKit-https.git] / Source / WebCore / page / MemoryRelease.cpp
index c16f9c0..1089db0 100644 (file)
@@ -128,9 +128,7 @@ void releaseMemory(Critical critical, Synchronous synchronous)
         // FastMalloc has lock-free thread specific caches that can only be cleared from the thread itself.
         WorkerThread::releaseFastMallocFreeMemoryInAllThreads();
 #if ENABLE(ASYNC_SCROLLING) && !PLATFORM(IOS)
-        ScrollingThread::dispatch([]() {
-            WTF::releaseFastMallocFreeMemory();
-        });
+        ScrollingThread::dispatch(WTF::releaseFastMallocFreeMemory);
 #endif
         WTF::releaseFastMallocFreeMemory();
     }