Skip to content

Commit 279365e

Browse files
author
Vincent van der Wal
committed
dispose when done
1 parent c7fce49 commit 279365e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/om-protocol.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -388,7 +388,6 @@ const initOMFile = async (url: string) => {
388388

389389
for (const i of [...Array(fileReader.reader.numberOfChildren())].map((_, i) => i)) {
390390
const child = await fileReader.reader.getChild(i);
391-
console.log(child.getName());
392391
if (child.getName() === variable.value) {
393392
const dimensions = child.getDimensions();
394393

@@ -404,6 +403,8 @@ const initOMFile = async (url: string) => {
404403

405404
data = { values: dataValues };
406405
break;
406+
} else {
407+
child.dispose();
407408
}
408409
}
409410
}

0 commit comments

Comments
 (0)