Fix clang-tidy warning about calling virtual method from dtor

1 job for master in 39 minutes and 34 seconds
Status Name Job ID Coverage
  Build
failed linux kf5-qt5 qt5.12 #71020

00:39:34

1.0%
 
Name Stage Failure
failed
linux kf5-qt5 qt5.12 Build
Uploading artifacts...
build: found 6392 matching files and directories

WARNING: Uploading artifacts as "archive" to coordinator... failed id=71020 responseStatus=502 Bad Gateway status=502 token=3cEZ-rum
WARNING: Retrying... context=artifacts-uploader error=invalid argument
WARNING: Uploading artifacts as "archive" to coordinator... failed id=71020 responseStatus=502 Bad Gateway status=502 token=3cEZ-rum
WARNING: Retrying... context=artifacts-uploader error=invalid argument
WARNING: Uploading artifacts as "archive" to coordinator... failed id=71020 responseStatus=502 Bad Gateway status=502 token=3cEZ-rum
FATAL: invalid argument
ERROR: Job failed: exit code 1