File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ namespace Js
30
30
// as many times as necessary to write the data into the cache.
31
31
// To read a block of data, call SeekReadStreamToBlock (optionally fetching the size of this
32
32
// block) and then call Read or ReadArray as necessary to read the data from the cache.
33
- class SimpleDataCacheWrapper
33
+ class SimpleDataCacheWrapper : public FinalizableObject
34
34
{
35
35
public:
36
36
enum BlockType : byte
@@ -43,9 +43,6 @@ namespace Js
43
43
// Does an AddRef on dataCache
44
44
SimpleDataCacheWrapper (IActiveScriptDataCache* dataCache);
45
45
46
- // Does Release on dataCache
47
- ~SimpleDataCacheWrapper () { this ->Close (); }
48
-
49
46
// Begin to write a block into the cache.
50
47
// Note: Must be called before writing bytes into the block as the block header is
51
48
// used to lookup the block when reading.
@@ -143,6 +140,10 @@ namespace Js
143
140
return hr;
144
141
}
145
142
143
+ virtual void Dispose (bool isShutdown) override { Close (); }
144
+ virtual void Finalize (bool isShutdown) override { }
145
+ virtual void Mark (Recycler * recycler) override { }
146
+
146
147
private:
147
148
const static uint MAX_BLOCKS_ALLOWED = 0xff ;
148
149
You can’t perform that action at this time.
0 commit comments