From 815fd197d3e292e869b85c5475ff08863b04a8de Mon Sep 17 00:00:00 2001 From: NeoBrainX Date: Tue, 8 Jan 2013 21:27:04 +0100 Subject: [PATCH] Fix a potential memleak in FifoPlayerDlg --- Source/Core/DolphinWX/Src/FifoPlayerDlg.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/Source/Core/DolphinWX/Src/FifoPlayerDlg.cpp b/Source/Core/DolphinWX/Src/FifoPlayerDlg.cpp index b5caf139d6..494931f959 100644 --- a/Source/Core/DolphinWX/Src/FifoPlayerDlg.cpp +++ b/Source/Core/DolphinWX/Src/FifoPlayerDlg.cpp @@ -470,6 +470,7 @@ void FifoPlayerDlg::OnBeginSearch(wxCommandEvent& event) if (obj_idx == -1) { m_numResultsText->SetLabel(_("Invalid search parameters (no object selected)")); + delete[] search_val; return; } start_ptr = &fifo_frame.fifoData[frame.objectStarts[obj_idx]];