From: Christoph Egger Date: Tue, 2 Jun 2015 21:31:53 +0000 (+0200) Subject: Only emit resetEvent if binary was succesfully loaded X-Git-Url: https://git.siccegge.de//index.cgi?a=commitdiff_plain;h=8fd2be3e9b3fe259e780d9a2d62019cad8385474;p=frida%2Ffrida.git Only emit resetEvent if binary was succesfully loaded --- diff --git a/src/core/InformationManager.cxx b/src/core/InformationManager.cxx index 7044381..f59afa0 100644 --- a/src/core/InformationManager.cxx +++ b/src/core/InformationManager.cxx @@ -43,8 +43,8 @@ InformationManager::~InformationManager() { void InformationManager::reset(const std::string& filename) { this->filename = filename; disassembler.reset(createLLVMDisassembler(filename, this)); - emit resetEvent(); if (disassembler.get() != NULL) { + emit resetEvent(); disassembler.get()->moveToThread(&disassemblerThread); connect(&disassemblerThread, &QThread::started, disassembler.get(), &Disassembler::start);