edgetypesdelegate: fix mem leak

1 job for master in 6 minutes and 26 seconds (queued for 2 seconds)
Status Job ID Name Coverage
  Build
passed #16524
linux kf5-qt5 qt5.12

00:06:26

48.0%