vanstyn / RapidApp

Turnkey ajaxy webapps
http://rapi.io
Other
48 stars 15 forks source link

Use weak reference to prevent memory leak. #198

Closed deven closed 3 years ago

deven commented 3 years ago

Memory leak testing showed circular references due to the "scope" attribute of RapidApp::Handler. Changing this attribute to a weak reference fixes the problem, and is appropriate since the handler doesn't "own" the object references by the scope attribute.