add virtual destructor to codec interface
Merge pull request #725 from licaiguo/add-virtual-destructor-api

add virtual destructor to codec interface