fix a memory leak problem
add gitignore
..