danomatika / swig-openframeworks

a SWIG interface for openFrameworks with included Makefile, submodule this in your language wrapper addons
Other
39 stars 11 forks source link

lua: named ofColors & ofRects not being destroyed #16

Open danomatika opened 7 years ago

danomatika commented 7 years ago

It seems the named colors returned by ofColor ala of.Color.white are not being destroyed when handed off the C++ in calls to of.setColor, etc which leads to memory a leak. Similarly, ofRectangle instances returned by ofTrueTypeFont::getStringBoundingBox() are (apparently) not collected even.