For safety, shouldn't this set mPItemsById and mTItemsByTrigId to nullptr?