GUI: Fix use-after-free
This commit is contained in:
parent
072d75ee43
commit
5887ac8ae2
|
|
@ -383,10 +383,10 @@ void ThreadView::updateThreadList()
|
|||
mCurrentThreadId = "NONE";
|
||||
if(threadList.count)
|
||||
{
|
||||
BridgeFree(threadList.list);
|
||||
int currentThread = threadList.CurrentThread;
|
||||
if(currentThread >= 0 && currentThread < threadList.count)
|
||||
mCurrentThreadId = ToHexString(threadList.list[currentThread].BasicInfo.ThreadId);
|
||||
BridgeFree(threadList.list);
|
||||
}
|
||||
reloadData();
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue