Fixed non-virtual destructor warning