FDestroyPath (LabVIEW Manager Function)

void FDestroyPath(&pp);

Purpose

Release the memory of an allocated path and NULL the path pointer.

Parameters

Name Type Description
pp Path* A pointer to the path you want to deallocate.

Return Value

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:


Path p;
p = FNotAPath(NULL);
// insert code here that uses the path
FDestroyPath(&p);
// p == NULL at this point