{"action":"created","issue":{"url":"https://api.github.com/repos/KDAB/GammaRay/issues/161","labels_url":"https://api.github.com/repos/KDAB/GammaRay/issues/161/labels{/name}","comments_url":"https://api.github.com/repos/KDAB/GammaRay/issues/161/comments","events_url":"https://api.github.com/repos/KDAB/GammaRay/issues/161/events","html_url":"https://github.com/KDAB/GammaRay/pull/161","id":119232944,"number":161,"title":"Fix wrong destruction of MethodArgument.","user":{"login":"akreuzkamp","id":6573625,"avatar_url":"https://avatars.githubusercontent.com/u/6573625?v=3","gravatar_id":"","url":"https://api.github.com/users/akreuzkamp","html_url":"https://github.com/akreuzkamp","followers_url":"https://api.github.com/users/akreuzkamp/followers","following_url":"https://api.github.com/users/akreuzkamp/following{/other_user}","gists_url":"https://api.github.com/users/akreuzkamp/gists{/gist_id}","starred_url":"https://api.github.com/users/akreuzkamp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/akreuzkamp/subscriptions","organizations_url":"https://api.github.com/users/akreuzkamp/orgs","repos_url":"https://api.github.com/users/akreuzkamp/repos","events_url":"https://api.github.com/users/akreuzkamp/events{/privacy}","received_events_url":"https://api.github.com/users/akreuzkamp/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-11-27T18:19:40Z","updated_at":"2015-11-27T19:38:03Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/KDAB/GammaRay/pulls/161","html_url":"https://github.com/KDAB/GammaRay/pull/161","diff_url":"https://github.com/KDAB/GammaRay/pull/161.diff","patch_url":"https://github.com/KDAB/GammaRay/pull/161.patch"},"body":"The destructor of MethodArgument used type() to determine the type of\r\nthe QVariant stored in it. But type is QMetaType::UserType for all\r\nuser types. Thus it would try to call the destructor of QWidget*,\r\nwhich is the first user type. That causes the value not to be\r\ndestructed and thus caused a memory leak, causing thousands of images\r\nnot to be destructed.\r\nNow it uses userType() to correctly get the actual type\r\n(userType() == type() for non-user types)."},"comment":{"url":"https://api.github.com/repos/KDAB/GammaRay/issues/comments/160194453","html_url":"https://github.com/KDAB/GammaRay/pull/161#issuecomment-160194453","issue_url":"https://api.github.com/repos/KDAB/GammaRay/issues/161","id":160194453,"user":{"login":"milianw","id":57207,"avatar_url":"https://avatars.githubusercontent.com/u/57207?v=3","gravatar_id":"","url":"https://api.github.com/users/milianw","html_url":"https://github.com/milianw","followers_url":"https://api.github.com/users/milianw/followers","following_url":"https://api.github.com/users/milianw/following{/other_user}","gists_url":"https://api.github.com/users/milianw/gists{/gist_id}","starred_url":"https://api.github.com/users/milianw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/milianw/subscriptions","organizations_url":"https://api.github.com/users/milianw/orgs","repos_url":"https://api.github.com/users/milianw/repos","events_url":"https://api.github.com/users/milianw/events{/privacy}","received_events_url":"https://api.github.com/users/milianw/received_events","type":"User","site_admin":false},"created_at":"2015-11-27T19:38:03Z","updated_at":"2015-11-27T19:38:03Z","body":"ouch! lgtm - feel free to merge"}}