change to filter_block std::unique_ptr support RAII
Merge pull request #260 from wankai/master

replace filter_block with std::unique_ptr to support RAII