From 3aaeead676cfaa4fb3163369c6a1b1b0b16c965b Mon Sep 17 00:00:00 2001 From: Christian Speckner Date: Sat, 14 Dec 2019 10:04:23 +0100 Subject: [PATCH] Stab at fixing memory issues. --- .vscode/settings.json | 3 ++- src/common/FBSurfaceSDL2.cxx | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.vscode/settings.json b/.vscode/settings.json index 52b5e38db..3aa24a890 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -26,6 +26,7 @@ "functional": "cpp", "iomanip": "cpp", "__cxx_version": "cpp", - "string": "cpp" + "string": "cpp", + "type_traits": "cpp" } } diff --git a/src/common/FBSurfaceSDL2.cxx b/src/common/FBSurfaceSDL2.cxx index 552de3df5..275ae116f 100644 --- a/src/common/FBSurfaceSDL2.cxx +++ b/src/common/FBSurfaceSDL2.cxx @@ -179,7 +179,7 @@ void FBSurfaceSDL2::invalidate() // - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - void FBSurfaceSDL2::free() { - myBlitter.reset(); + myBlitter.reset(nullptr); } // - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -