From 588f8a833fd1a3e45a0fc33ea1791b03a706cf15 Mon Sep 17 00:00:00 2001 From: Ryozuki Date: Sat, 11 Apr 2020 13:38:02 +0200 Subject: [PATCH] Fix snapshot storage leak --- src/engine/shared/snapshot.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/engine/shared/snapshot.h b/src/engine/shared/snapshot.h index fa6fccc7d..27a706b92 100644 --- a/src/engine/shared/snapshot.h +++ b/src/engine/shared/snapshot.h @@ -110,6 +110,8 @@ public: CHolder *m_pFirst; CHolder *m_pLast; + CSnapshotStorage() { Init(); }; + ~CSnapshotStorage() { PurgeAll(); }; void Init(); void PurgeAll(); void PurgeUntil(int Tick);