Merge "Fix possible uaf of play policy state" into qt-dev