void FDestroyPath(&pp);
Release the memory of an allocated path and NULL the path pointer.
Name | Type | Description |
---|---|---|
pp | Path* | A pointer to the path you want to deallocate. |
None.
Note This function replaces the older FDisposePath function. The older function is still available, but its use is discouraged. By passing a pointer to the path instead of the path directly, the FDestroyPath function can properly NULL out the path, thus preventing double deallocation errors. The new function also can handle NULL paths, eliminating the need to check for NULL prior to calling FDisposePath. A typical use of the new function is illustrated by the following text:
|