Fixed memory leak.
This commit is contained in:
parent
919a3d1740
commit
14e7756fe3
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue