That's also the recommended way to deal with it in c. It hasn't been effective in preventing vulnerabilities based on use-after-free.
If the GPA is practical to use in production, that will be a different story. But it doesn't sound like it's there yet.