Skip to content

Commit

Permalink
add replayunloader to the garbage collection
Browse files Browse the repository at this point in the history
  • Loading branch information
MinaciousGrace committed Dec 1, 2018
1 parent 151e9ea commit 54a0f9d
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/RageTextureManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
#include "Screen.h"
#include "ScreenManager.h"
#include "arch/MovieTexture/MovieTexture.h"
#include "ScoreManager.h"

#include <map>

Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 54a0f9d

Please sign in to comment.