{"action":"created","issue":{"url":"https://api.github.com/repos/grimfang4/SDL_FontCache/issues/21","repository_url":"https://api.github.com/repos/grimfang4/SDL_FontCache","labels_url":"https://api.github.com/repos/grimfang4/SDL_FontCache/issues/21/labels{/name}","comments_url":"https://api.github.com/repos/grimfang4/SDL_FontCache/issues/21/comments","events_url":"https://api.github.com/repos/grimfang4/SDL_FontCache/issues/21/events","html_url":"https://github.com/grimfang4/SDL_FontCache/pull/21","id":296798390,"number":21,"title":"Fixed a memory leak that occured on FC_Init","user":{"login":"MonzUn","id":11805935,"avatar_url":"https://avatars2.githubusercontent.com/u/11805935?v=4","gravatar_id":"","url":"https://api.github.com/users/MonzUn","html_url":"https://github.com/MonzUn","followers_url":"https://api.github.com/users/MonzUn/followers","following_url":"https://api.github.com/users/MonzUn/following{/other_user}","gists_url":"https://api.github.com/users/MonzUn/gists{/gist_id}","starred_url":"https://api.github.com/users/MonzUn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MonzUn/subscriptions","organizations_url":"https://api.github.com/users/MonzUn/orgs","repos_url":"https://api.github.com/users/MonzUn/repos","events_url":"https://api.github.com/users/MonzUn/events{/privacy}","received_events_url":"https://api.github.com/users/MonzUn/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":8,"created_at":"2018-02-13T16:22:10Z","updated_at":"2018-02-13T20:42:58Z","closed_at":null,"author_association":"NONE","pull_request":{"url":"https://api.github.com/repos/grimfang4/SDL_FontCache/pulls/21","html_url":"https://github.com/grimfang4/SDL_FontCache/pull/21","diff_url":"https://github.com/grimfang4/SDL_FontCache/pull/21.diff","patch_url":"https://github.com/grimfang4/SDL_FontCache/pull/21.patch"},"body":"FC_GetStringASCII does malloc and returns the pointer so directly passing it to U8_strdup will cause a memory leak.\r\n\r\nI'm not sure why we there is a need to do U8_strdup here though so I just craeted a temp pointer so that it can be freed after the copy instead of just removing U8_strdup."},"comment":{"url":"https://api.github.com/repos/grimfang4/SDL_FontCache/issues/comments/365397642","html_url":"https://github.com/grimfang4/SDL_FontCache/pull/21#issuecomment-365397642","issue_url":"https://api.github.com/repos/grimfang4/SDL_FontCache/issues/21","id":365397642,"user":{"login":"MonzUn","id":11805935,"avatar_url":"https://avatars2.githubusercontent.com/u/11805935?v=4","gravatar_id":"","url":"https://api.github.com/users/MonzUn","html_url":"https://github.com/MonzUn","followers_url":"https://api.github.com/users/MonzUn/followers","following_url":"https://api.github.com/users/MonzUn/following{/other_user}","gists_url":"https://api.github.com/users/MonzUn/gists{/gist_id}","starred_url":"https://api.github.com/users/MonzUn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MonzUn/subscriptions","organizations_url":"https://api.github.com/users/MonzUn/orgs","repos_url":"https://api.github.com/users/MonzUn/repos","events_url":"https://api.github.com/users/MonzUn/events{/privacy}","received_events_url":"https://api.github.com/users/MonzUn/received_events","type":"User","site_admin":false},"created_at":"2018-02-13T20:42:58Z","updated_at":"2018-02-13T20:42:58Z","author_association":"NONE","body":"Should be fixed now. I squished the previous commit since i didn't know if it would have been added to your history or not."}}
{"actor":{"display_login":"MonzUn"}}