mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
examples: fix leak in examples/sokol/particles/, by marking s.pool and s.bin with .noslices
This commit is contained in:
parent
85d36ed231
commit
89d399b035
@ -19,6 +19,8 @@ mut:
|
||||
}
|
||||
|
||||
pub fn (mut s System) init(sc SystemConfig) {
|
||||
unsafe { s.pool.flags.set(.noslices) }
|
||||
unsafe { s.bin.flags.set(.noslices) }
|
||||
for i := 0; i < sc.pool; i++ {
|
||||
p := new(vec2.Vec2{f32(s.width) * 0.5, f32(s.height) * 0.5})
|
||||
s.bin << p
|
||||
|
Loading…
Reference in New Issue
Block a user