UICommon: Fix a leak/bug in Disassembler retrieval

This commit is contained in:
Lioncash 2015-08-04 14:28:32 -04:00
parent 0aad44c980
commit 7387914529
1 changed files with 1 additions and 1 deletions

View File

@ -152,7 +152,7 @@ HostDisassembler* GetNewDisassembler(const std::string& arch)
return new HostDisassemblerLLVM("armv7-none-unknown", 4, "cortex-a15");
#elif defined(_M_X86)
if (arch == "x86")
new HostDisassemblerX86();
return new HostDisassemblerX86();
#endif
return new HostDisassembler();
}