Browse Source

Merge branch 'master' of https://github.com/odin-lang/Odin

gingerBill 1 year ago
parent
commit
f226eba342
1 changed files with 2 additions and 2 deletions
  1. 2 2
      core/encoding/ini/ini.odin

+ 2 - 2
core/encoding/ini/ini.odin

@@ -92,7 +92,6 @@ load_map_from_string :: proc(src: string, allocator: runtime.Allocator, options
 			}
 		}
 		return strings.clone(val)
-
 	}
 
 	context.allocator = allocator
@@ -114,7 +113,7 @@ load_map_from_string :: proc(src: string, allocator: runtime.Allocator, options
 			new_key = strings.to_lower(key) or_return
 			delete(old_key) or_return
 		}
-		pairs[new_key] = unquote(value) or_return
+		pairs[new_key], err = unquote(value) or_return
 	}
 	return
 }
@@ -144,6 +143,7 @@ delete_map :: proc(m: Map) {
 			delete(value, allocator)
 		}
 		delete(section)
+		delete(pairs)
 	}
 	delete(m)
 }