Fix leaks in QSSGCommand
The QSSGCommand was initially intended to be trivial data classes, but
has long since ceased to be that simple and we now allocate copies of
the type to avoid data races. We therefore need to have a virtual dtor
to ensure sub-classes get a chance to release their own data. This
amends 4de69429c9d01e5a826ba1c4d2e6e0778847a68e but was a problem even
before that change.
Pick-to: 6.11
Change-Id: Ib732425f9c5e31ccea91b09705b565bedd89af78
Reviewed-by: Andy Nichols <andy.nichols@qt.io>