IjzerenHein / kiwi.js

Fast TypeScript implementation of the Cassowary constraint solving algorithm 🖖
Other
249 stars 24 forks source link

Variables are never removed from `_varMap` #11

Open joshuahhh opened 5 years ago

joshuahhh commented 5 years ago

Variables are added to _varMap (in Solver) when constraints are added, but they are never removed, even if all the constraints that refer to them are removed. This could cause a memory leak in some situations.

IjzerenHein commented 5 years ago

Alright, thanks for pointing this out. I'll take a closer look at this in two weeks or so. cheers