Having issues with a stateful node developing quite the memory leak. I can't seem to use VuoRelease() (or VuoRetain()) on floats or integers. I see from Vuo.Math.Count that you use a pointer to the stored value, and creates it as an input. How would I go about solving this when the stored value is not coming from an input, and the instance is a struct instead of a type?
When building the project with retailn/release on these values, I get a warning: incompatible integer to pointer conversion passing 'VuoInteger' (aka long long') to parameter of type 'const void ' VuoRelease((instance)->count);
In the struct, there is also a VuoPoint2d, which retains and releases without any error messages. So I'm clearly doing something wrong when it comes to floats & ints. I suspect I'm passing the value of the VuoReal/-Integer instead of the heap info I'm supposed to pass, but can't figure out how I'd do it correctly.
Would love some help on this! Cheers!