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>
commit0fb07297f781ac3f18dc2c7e60eb506f145103b6
parent762d12c59fdbb8538b82e91eab90ded3112ce101
authorChristian Strømme <christian.stromme@qt.io>
committerChristian Strømme <christian.stromme@qt.io>
commit timeFri, 23 Jan 2026 13:31:47 +0000