Fixed memory leak.

This commit is contained in:
Stephen Atherton 2017-09-09 02:18:37 -07:00
parent 919a3d1740
commit 14e7756fe3
1 changed files with 5 additions and 0 deletions

View File

@ -66,9 +66,14 @@ private:
class IndirectShadowPagerSnapshot : public IPagerSnapshot, ReferenceCounted<IndirectShadowPagerSnapshot> {
public:
IndirectShadowPagerSnapshot(IndirectShadowPager *pager, Version version) : pager(pager), version(version) {}
virtual Future<Reference<const IPage>> getPhysicalPage(LogicalPageID pageID);
virtual void invalidateReturnedPages();
virtual ~IndirectShadowPagerSnapshot() {
invalidateReturnedPages();
}
virtual void addref() {
ReferenceCounted<IndirectShadowPagerSnapshot>::addref();
}