fix memory related bugs
Merge branch 'master' of github.com:zhanxw/anno