From 54a0f9db0862cd317bfa95b1004cafb23f90e6eb Mon Sep 17 00:00:00 2001 From: "born a rick, raised a morty, died a jerry" Date: Sat, 1 Dec 2018 13:29:08 -0500 Subject: [PATCH] add replayunloader to the garbage collection --- src/RageTextureManager.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/RageTextureManager.cpp b/src/RageTextureManager.cpp index 56f32ebf36..ef30d3c37b 100644 --- a/src/RageTextureManager.cpp +++ b/src/RageTextureManager.cpp @@ -31,6 +31,7 @@ #include "Screen.h" #include "ScreenManager.h" #include "arch/MovieTexture/MovieTexture.h" +#include "ScoreManager.h" #include @@ -351,6 +352,10 @@ RageTextureManager::GarbageCollect(GCType type) if (bDeleteThis) DeleteTexture(t); } + + // this may actually the best place for this -mina + LOG->Trace("Unloading replaydata."); + SCOREMAN->UnloadAllReplayData(); } void