{"action":"created","issue":{"url":"https://api.github.com/repos/LibreCAD/LibreCAD/issues/685","repository_url":"https://api.github.com/repos/LibreCAD/LibreCAD","labels_url":"https://api.github.com/repos/LibreCAD/LibreCAD/issues/685/labels{/name}","comments_url":"https://api.github.com/repos/LibreCAD/LibreCAD/issues/685/comments","events_url":"https://api.github.com/repos/LibreCAD/LibreCAD/issues/685/events","html_url":"https://github.com/LibreCAD/LibreCAD/issues/685","id":142081749,"number":685,"title":"Opening a DXF leaks memory","user":{"login":"strk","id":289678,"avatar_url":"https://avatars.githubusercontent.com/u/289678?v=3","gravatar_id":"","url":"https://api.github.com/users/strk","html_url":"https://github.com/strk","followers_url":"https://api.github.com/users/strk/followers","following_url":"https://api.github.com/users/strk/following{/other_user}","gists_url":"https://api.github.com/users/strk/gists{/gist_id}","starred_url":"https://api.github.com/users/strk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/strk/subscriptions","organizations_url":"https://api.github.com/users/strk/orgs","repos_url":"https://api.github.com/users/strk/repos","events_url":"https://api.github.com/users/strk/events{/privacy}","received_events_url":"https://api.github.com/users/strk/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2016-03-19T16:58:20Z","updated_at":"2016-03-20T08:55:23Z","closed_at":null,"body":"I tried opening a 64MB DXF file which succeeded with Librecad process using about 1.5GB of RAM.\r\nOn _closing_ the document those 1.5GB of RAM remained in use, so I guess there's a memory leak somewhere. Unfortunately I cannot share the DXF."},"comment":{"url":"https://api.github.com/repos/LibreCAD/LibreCAD/issues/comments/198876248","html_url":"https://github.com/LibreCAD/LibreCAD/issues/685#issuecomment-198876248","issue_url":"https://api.github.com/repos/LibreCAD/LibreCAD/issues/685","id":198876248,"user":{"login":"strk","id":289678,"avatar_url":"https://avatars.githubusercontent.com/u/289678?v=3","gravatar_id":"","url":"https://api.github.com/users/strk","html_url":"https://github.com/strk","followers_url":"https://api.github.com/users/strk/followers","following_url":"https://api.github.com/users/strk/following{/other_user}","gists_url":"https://api.github.com/users/strk/gists{/gist_id}","starred_url":"https://api.github.com/users/strk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/strk/subscriptions","organizations_url":"https://api.github.com/users/strk/orgs","repos_url":"https://api.github.com/users/strk/repos","events_url":"https://api.github.com/users/strk/events{/privacy}","received_events_url":"https://api.github.com/users/strk/received_events","type":"User","site_admin":false},"created_at":"2016-03-20T08:55:23Z","updated_at":"2016-03-20T08:55:23Z","body":"On Sat, Mar 19, 2016 at 11:23:17AM -0700, ravas wrote:\n\n> the destructor drw_polyline:\n> \n> ```\n>     ~DRW_Polyline() {\n>         while (!vertlist.empty()) {\n>            vertlist.pop_back();\n>          }\n>     }\n> ```\n> \n> The logic really needs to be cleaned, rather than just adding a delete statement.\n\nUntil a refactoring is done, adding the delete statement wouldn't be bad.\nRather, why is that convoluted loop used rather than a straight scan ?\nAre there other threads expected to possibly using that container during\nthe destructor of that object ?\n\n"}}