mirror of
https://github.com/Ed94/Odin.git
synced 2026-06-19 12:22:23 -07:00
Merge pull request #2579 from apahl/patch-1
Documentation: Tracking_Allocator example is leaking memory
This commit is contained in:
+2
-1
@@ -18,6 +18,7 @@ _main :: proc() {
|
||||
main :: proc() {
|
||||
track: mem.Tracking_Allocator
|
||||
mem.tracking_allocator_init(&track, context.allocator)
|
||||
defer mem.tracking_allocator_destroy(&track)
|
||||
context.allocator = mem.tracking_allocator(&track)
|
||||
|
||||
_main()
|
||||
@@ -31,4 +32,4 @@ main :: proc() {
|
||||
}
|
||||
```
|
||||
*/
|
||||
package mem
|
||||
package mem
|
||||
|
||||
Reference in New Issue
Block a user