{"action":"created","issue":{"url":"https://api.github.com/repos/musescore/MuseScore/issues/2230","labels_url":"https://api.github.com/repos/musescore/MuseScore/issues/2230/labels{/name}","comments_url":"https://api.github.com/repos/musescore/MuseScore/issues/2230/comments","events_url":"https://api.github.com/repos/musescore/MuseScore/issues/2230/events","html_url":"https://github.com/musescore/MuseScore/pull/2230","id":107464819,"number":2230,"title":"fix #78531 prevent Album memory leak by deleting scores when print/join","user":{"login":"ericfont","id":6502474,"avatar_url":"https://avatars.githubusercontent.com/u/6502474?v=3","gravatar_id":"","url":"https://api.github.com/users/ericfont","html_url":"https://github.com/ericfont","followers_url":"https://api.github.com/users/ericfont/followers","following_url":"https://api.github.com/users/ericfont/following{/other_user}","gists_url":"https://api.github.com/users/ericfont/gists{/gist_id}","starred_url":"https://api.github.com/users/ericfont/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ericfont/subscriptions","organizations_url":"https://api.github.com/users/ericfont/orgs","repos_url":"https://api.github.com/users/ericfont/repos","events_url":"https://api.github.com/users/ericfont/events{/privacy}","received_events_url":"https://api.github.com/users/ericfont/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":17,"created_at":"2015-09-21T08:28:47Z","updated_at":"2015-10-27T17:51:01Z","closed_at":"2015-10-27T17:13:23Z","pull_request":{"url":"https://api.github.com/repos/musescore/MuseScore/pulls/2230","html_url":"https://github.com/musescore/MuseScore/pull/2230","diff_url":"https://github.com/musescore/MuseScore/pull/2230.diff","patch_url":"https://github.com/musescore/MuseScore/pull/2230.patch"},"body":"Previously, both Album::print() and Album::createScore() created new Score objects when calling Album::loadScores(), but never deleted those created score objects.\r\n\r\nI've added an Album::unloadScores() function which corresponds to Album::loadScores() to iterate over list of album items and delete any already-loaded scores.  I've called this whenever Album::print() or Album::createScore() return."},"comment":{"url":"https://api.github.com/repos/musescore/MuseScore/issues/comments/151585455","html_url":"https://github.com/musescore/MuseScore/pull/2230#issuecomment-151585455","issue_url":"https://api.github.com/repos/musescore/MuseScore/issues/2230","id":151585455,"user":{"login":"ericfont","id":6502474,"avatar_url":"https://avatars.githubusercontent.com/u/6502474?v=3","gravatar_id":"","url":"https://api.github.com/users/ericfont","html_url":"https://github.com/ericfont","followers_url":"https://api.github.com/users/ericfont/followers","following_url":"https://api.github.com/users/ericfont/following{/other_user}","gists_url":"https://api.github.com/users/ericfont/gists{/gist_id}","starred_url":"https://api.github.com/users/ericfont/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ericfont/subscriptions","organizations_url":"https://api.github.com/users/ericfont/orgs","repos_url":"https://api.github.com/users/ericfont/repos","events_url":"https://api.github.com/users/ericfont/events{/privacy}","received_events_url":"https://api.github.com/users/ericfont/received_events","type":"User","site_admin":false},"created_at":"2015-10-27T17:51:01Z","updated_at":"2015-10-27T17:51:01Z","body":"don't we need an AlbumItem constructor which initializes score to NULL?"}}