Frees all allocated memory regions that would be leaked otherwise. Likely to invalidate existing function pointers, causing unsafety.
(&mut self)
| 138 | /// Frees all allocated memory regions that would be leaked otherwise. |
| 139 | /// Likely to invalidate existing function pointers, causing unsafety. |
| 140 | pub(crate) unsafe fn free_memory(&mut self) { |
| 141 | self.allocations.clear(); |
| 142 | self.already_protected = 0; |
| 143 | } |
| 144 | } |
| 145 | |
| 146 | impl Drop for Memory { |