diff --git a/src/frontend/qt_sdl/CameraManager.cpp b/src/frontend/qt_sdl/CameraManager.cpp index 7f4db5d4..cc532ff1 100644 --- a/src/frontend/qt_sdl/CameraManager.cpp +++ b/src/frontend/qt_sdl/CameraManager.cpp @@ -146,6 +146,7 @@ CameraManager::~CameraManager() // save settings here? delete[] frameBuffer; + delete[] tempFrameBuffer; } void CameraManager::init() diff --git a/src/frontend/qt_sdl/LocalMP.cpp b/src/frontend/qt_sdl/LocalMP.cpp index 56139723..4b3a6a64 100644 --- a/src/frontend/qt_sdl/LocalMP.cpp +++ b/src/frontend/qt_sdl/LocalMP.cpp @@ -311,8 +311,8 @@ void DeInit() MPQueue->detach(); } - MPQueue = nullptr; delete MPQueue; + MPQueue = nullptr; } void SetRecvTimeout(int timeout) diff --git a/src/frontend/qt_sdl/main.cpp b/src/frontend/qt_sdl/main.cpp index e96bb4bd..f033e668 100644 --- a/src/frontend/qt_sdl/main.cpp +++ b/src/frontend/qt_sdl/main.cpp @@ -832,6 +832,7 @@ ScreenHandler::ScreenHandler(QWidget* widget) ScreenHandler::~ScreenHandler() { mouseTimer->stop(); + delete mouseTimer; } void ScreenHandler::screenSetupLayout(int w, int h) @@ -1872,6 +1873,8 @@ MainWindow::MainWindow(QWidget* parent) : QMainWindow(parent) MainWindow::~MainWindow() { + delete[] actScreenAspectTop; + delete[] actScreenAspectBot; } void MainWindow::closeEvent(QCloseEvent* event) @@ -3376,6 +3379,8 @@ int main(int argc, char** argv) int ret = melon.exec(); + delete options; + emuThread->emuStop(); emuThread->wait(); delete emuThread;