free method
Releases memory allocated on the native heap.
For POSIX-based systems, this uses free. On Windows, it uses
CoTaskMemFree. It may only be used against pointers allocated in a
manner equivalent to allocate.
Implementation
@override
void free(Pointer pointer) {
if (Platform.isWindows) {
winCoTaskMemFree(pointer);
} else {
posixFree(pointer);
}
}