Browse Source

Ensure deletion of maybe is delayed until we're finished with it.

Ronald 1 year ago
parent
commit
e0a8bd04d5
1 changed files with 1 additions and 1 deletions
  1. 1 1
      tests/core/encoding/ini/test_core_ini.odin

+ 1 - 1
tests/core/encoding/ini/test_core_ini.odin

@@ -19,7 +19,7 @@ parse_ini :: proc(t: ^testing.T) {
 	`
 
 	m, err := ini.load_map_from_string(ini_data, context.allocator)
-	ini.delete_map(m)
+	defer ini.delete_map(m)
 
 	testing.expectf(
 		t,