Crash fix in ~QVariant