mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-08-05 07:39:17 +00:00
Fix a potential memleak in FifoPlayerDlg
This commit is contained in:
parent
e204a6e015
commit
815fd197d3
1 changed files with 1 additions and 0 deletions
|
@ -470,6 +470,7 @@ void FifoPlayerDlg::OnBeginSearch(wxCommandEvent& event)
|
||||||
if (obj_idx == -1)
|
if (obj_idx == -1)
|
||||||
{
|
{
|
||||||
m_numResultsText->SetLabel(_("Invalid search parameters (no object selected)"));
|
m_numResultsText->SetLabel(_("Invalid search parameters (no object selected)"));
|
||||||
|
delete[] search_val;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
start_ptr = &fifo_frame.fifoData[frame.objectStarts[obj_idx]];
|
start_ptr = &fifo_frame.fifoData[frame.objectStarts[obj_idx]];
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue