PistonDevelopers / graphics_tree

A 2D graphics backend for Piston-Graphics that stores and optimizes commands
Apache License 2.0
2 stars 1 forks source link

"paint" example leaks memory #5

Open bvssvni opened 8 years ago

bvssvni commented 8 years ago

Might be a memory leak in Gfx.

Since updating textures requires access to Encoder in gfx_graphics, the only way to "update" a texture, for now, is by creating a new texture. This line replaces the old texture with the new one.

The "paint" example has a memory leak, which I thought this call in piston_window should clean up.

cc @kvark

kvark commented 8 years ago

This is possible, perhaps related to https://github.com/gfx-rs/gfx/issues/1054