Fix warnings -Wdelete-non-virtual-dtor
Fix warnings -Wdelete-non-virtual-dtor

Reported GCC warning: deleting object of abstract class type ‘PathObject’ which has non-virtual destructor will cause undefined behaviour [-Wdelete-non-virtual-dtor]
   delete object;


gaziel/heekscnc,gaziel/heekscnc,tbinias/heekscnc,tbinias/heekscnc,tbinias/heekscnc,gaziel/heekscnc,gaziel/heekscnc,tbinias/heekscnc