Fix -Wnon-virtual-dtor warning introduced in r217982.