memory leak fix
Merge branch 'master' into chrome_popup