rcFree

Deallocates a memory block.

Windows
MacOS
Linux

Warnings

  • This function leaves the value of `ptr_ unchanged. So it still points to the same (now invalid) location, and not to null.

References

Module

Navmesh

Header

/Engine/Source/Runtime/Navmesh/Public/Recast/RecastAlloc.h

Include

#include "Recast/RecastAlloc.h"

Source

/Engine/Source/Runtime/Navmesh/Private/Recast/RecastAlloc.cpp

Syntax

void rcFree
(
    void * ptr
)

Remarks

Deallocates a memory block.

This function leaves the value of `ptr_ unchanged. So it still points to the same (now invalid) location, and not to null.

Parameters

Parameter

Description

ptr

A pointer to a memory block previously allocated using rcAlloc.

See Also

rcAlloc

rcAllocSetCustom

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss