This function returns one of the following values:
If the destroy operation was successfully performed.
If there was an internal memory operation error.
If the address of map_ptr or source_map is invalid.