{"action":"opened","issue":{"url":"https://api.github.com/repos/mpv-player/mpv/issues/3046","repository_url":"https://api.github.com/repos/mpv-player/mpv","labels_url":"https://api.github.com/repos/mpv-player/mpv/issues/3046/labels{/name}","comments_url":"https://api.github.com/repos/mpv-player/mpv/issues/3046/comments","events_url":"https://api.github.com/repos/mpv-player/mpv/issues/3046/events","html_url":"https://github.com/mpv-player/mpv/issues/3046","id":148219841,"number":3046,"title":"memory leak on resize","user":{"login":"sda89ha9","id":15878392,"avatar_url":"https://avatars.githubusercontent.com/u/15878392?v=3","gravatar_id":"","url":"https://api.github.com/users/sda89ha9","html_url":"https://github.com/sda89ha9","followers_url":"https://api.github.com/users/sda89ha9/followers","following_url":"https://api.github.com/users/sda89ha9/following{/other_user}","gists_url":"https://api.github.com/users/sda89ha9/gists{/gist_id}","starred_url":"https://api.github.com/users/sda89ha9/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sda89ha9/subscriptions","organizations_url":"https://api.github.com/users/sda89ha9/orgs","repos_url":"https://api.github.com/users/sda89ha9/repos","events_url":"https://api.github.com/users/sda89ha9/events{/privacy}","received_events_url":"https://api.github.com/users/sda89ha9/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-04-14T00:45:40Z","updated_at":"2016-04-14T00:45:40Z","closed_at":null,"body":"windows 10 preview build 14316\r\namd r9 290 / driver 16.4.1\r\nmpv build lachs0r 2016-04-11 and latest git\r\n\r\nconstantly resizing the video window or toggling fullscreen causes memory leak\r\nonly happens with video-sync=display-* and opengl-hq\r\nif display sync is disabled or interpolation or dumb-mode is enabled then there is no leak\r\nmemory usage: http://pastebin.com/WarxmFqB\r\n\r\nif i remove the following code from video/out/opengl/video.c\r\nif (frame->num_vsyncs > 1 && frame->display_synced &&\r\n    !p->dumb_mode && gl->BlitFramebuffer)\r\n{\r\n    fbotex_change(&p->output_fbo, p->gl, p->log,\r\n                  p->vp_w, abs(p->vp_h),\r\n                  p->opts.fbo_format, 0);\r\n    dest_fbo = p->output_fbo.fbo;\r\n    p->output_fbo_valid = true;\r\n}\r\n\r\nthen there is no memory leak but this increases gpu usage alot"}}