fix leaks
This commit is contained in:
@@ -170,6 +170,9 @@ filter_node_destroy :: proc(node: ^Filter_Node) {
|
||||
if node.child != nil {
|
||||
filter_node_destroy(node.child)
|
||||
}
|
||||
|
||||
// Free the node itself (allocated with new(Filter_Node))
|
||||
free(node)
|
||||
}
|
||||
|
||||
// ============================================================================
|
||||
@@ -735,10 +738,10 @@ evaluate_contains :: proc(attr: Attribute_Value, val: Attribute_Value) -> bool {
|
||||
}
|
||||
}
|
||||
|
||||
case Number_Set:
|
||||
if v, ok := val.(Number); ok {
|
||||
for n in a {
|
||||
if n == string(v) {
|
||||
case DDB_Number_Set:
|
||||
if v, ok := val.(DDB_Number); ok {
|
||||
for num in a {
|
||||
if compare_ddb_numbers(num, v) == 0 {
|
||||
return true
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user