diff --git a/Source/Core/Core/PatchEngine.cpp b/Source/Core/Core/PatchEngine.cpp
index eef8f919b8..9a4302c15b 100644
--- a/Source/Core/Core/PatchEngine.cpp
+++ b/Source/Core/Core/PatchEngine.cpp
@@ -224,6 +224,9 @@ void ApplyFramePatches()
 void Shutdown()
 {
   onFrame.clear();
+  speedHacks.clear();
+  ActionReplay::ApplyCodes({});
+  Gecko::SetActiveCodes({});
 }
 
 }  // namespace