Add virtual destructor to get rid of Xcode warning.
Merge pull request #3043 from ey6es/master

Add virtual destructor to get rid of Xcode warning.