compiler: remove the temporary windows check
parent
c604a5c02f
commit
682eedce59
|
@ -1068,7 +1068,7 @@ fn (p mut Parser) close_scope() {
|
||||||
break
|
break
|
||||||
}
|
}
|
||||||
// Clean up memory, only do this for V compiler for now
|
// Clean up memory, only do this for V compiler for now
|
||||||
if p.os != .windows {
|
//if p.os != .windows {
|
||||||
if p.pref.building_v && v.is_alloc && !p.pref.is_test {
|
if p.pref.building_v && v.is_alloc && !p.pref.is_test {
|
||||||
mut free_fn := 'free'
|
mut free_fn := 'free'
|
||||||
if v.typ.starts_with('array_') {
|
if v.typ.starts_with('array_') {
|
||||||
|
@ -1092,7 +1092,7 @@ fn (p mut Parser) close_scope() {
|
||||||
} else {
|
} else {
|
||||||
p.genln('$free_fn($v.name); // close_scope free')
|
p.genln('$free_fn($v.name); // close_scope free')
|
||||||
}
|
}
|
||||||
}
|
//}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if p.cur_fn.defer_text.last() != '' {
|
if p.cur_fn.defer_text.last() != '' {
|
||||||
|
|
Loading…
Reference in New Issue