{"action":"created","issue":{"url":"https://api.github.com/repos/massiveinteractive/minject/issues/30","labels_url":"https://api.github.com/repos/massiveinteractive/minject/issues/30/labels{/name}","comments_url":"https://api.github.com/repos/massiveinteractive/minject/issues/30/comments","events_url":"https://api.github.com/repos/massiveinteractive/minject/issues/30/events","html_url":"https://github.com/massiveinteractive/minject/issues/30","id":50710297,"number":30,"title":"CPP attendToInjectees leaks","user":{"login":"thomasuster","id":220965,"avatar_url":"https://avatars.githubusercontent.com/u/220965?v=3","gravatar_id":"","url":"https://api.github.com/users/thomasuster","html_url":"https://github.com/thomasuster","followers_url":"https://api.github.com/users/thomasuster/followers","following_url":"https://api.github.com/users/thomasuster/following{/other_user}","gists_url":"https://api.github.com/users/thomasuster/gists{/gist_id}","starred_url":"https://api.github.com/users/thomasuster/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thomasuster/subscriptions","organizations_url":"https://api.github.com/users/thomasuster/orgs","repos_url":"https://api.github.com/users/thomasuster/repos","events_url":"https://api.github.com/users/thomasuster/events{/privacy}","received_events_url":"https://api.github.com/users/thomasuster/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2014-12-02T19:59:56Z","updated_at":"2015-01-05T19:01:28Z","closed_at":null,"body":"Because ObjectMaps do not use weak references and CPP has no weakmap(https://github.com/HaxeFoundation/haxe/issues/3200) minject leaks for all objects injected or instantiated in CPP. I was able to verify this in GlowCode, a memory profiler for windows.\r\n\r\nThe ObjectMap is used in attendToInjectees. I'd prefer removing it altogether as I never run into the defensive use-case I think it was intended for. Or maybe you'd prefer a removal/exception for CPP? If you want removal for CPP only I have a branch ready."},"comment":{"url":"https://api.github.com/repos/massiveinteractive/minject/issues/comments/68757466","html_url":"https://github.com/massiveinteractive/minject/issues/30#issuecomment-68757466","issue_url":"https://api.github.com/repos/massiveinteractive/minject/issues/30","id":68757466,"user":{"login":"thomasuster","id":220965,"avatar_url":"https://avatars.githubusercontent.com/u/220965?v=3","gravatar_id":"","url":"https://api.github.com/users/thomasuster","html_url":"https://github.com/thomasuster","followers_url":"https://api.github.com/users/thomasuster/followers","following_url":"https://api.github.com/users/thomasuster/following{/other_user}","gists_url":"https://api.github.com/users/thomasuster/gists{/gist_id}","starred_url":"https://api.github.com/users/thomasuster/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thomasuster/subscriptions","organizations_url":"https://api.github.com/users/thomasuster/orgs","repos_url":"https://api.github.com/users/thomasuster/repos","events_url":"https://api.github.com/users/thomasuster/events{/privacy}","received_events_url":"https://api.github.com/users/thomasuster/received_events","type":"User","site_admin":false},"created_at":"2015-01-05T19:01:28Z","updated_at":"2015-01-05T19:01:28Z","body":"Awesome! I'll double check PR on Pakka Pets and see if I find anything."}}