From d7d9229aeb0ba16c73d1fadf73c5ec80511e74f1 Mon Sep 17 00:00:00 2001 From: Hossein Yousefi Date: Tue, 23 Apr 2024 17:50:31 +0200 Subject: [PATCH] [ffi] Fix `MallocAllocator` doc (#1096) --- pkgs/ffi/lib/src/allocation.dart | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/ffi/lib/src/allocation.dart b/pkgs/ffi/lib/src/allocation.dart index 42021458a..5611b647d 100644 --- a/pkgs/ffi/lib/src/allocation.dart +++ b/pkgs/ffi/lib/src/allocation.dart @@ -40,11 +40,11 @@ final WinCoTaskMemFree winCoTaskMemFree = winCoTaskMemFreePointer.asFunction(); /// Manages memory on the native heap. /// -/// Does not initialize newly allocated memory to zero. Use [_CallocAllocator] +/// Does not initialize newly allocated memory to zero. Use [CallocAllocator] /// for zero-initialized memory on allocation. /// /// For POSIX-based systems, this uses `malloc` and `free`. On Windows, it uses -/// `CoTaskMemAlloc`. +/// `CoTaskMemAlloc` and `CoTaskMemFree`. final class MallocAllocator implements Allocator { const MallocAllocator._();