Tried to fix QThreadStorage leak.