Merge pull request #9097 from jordan-woyak/bt-emu-kill-mem-var Core/BTEmu: Change a member variable to a local variable.