fix memory leak of filters
Merge pull request #196 from zrong/zrong

fix memory leak of filters