Commit 8e20dcd2 authored by nanahira's avatar nanahira

fix missing free

parent 77f7c1c9
......@@ -46,6 +46,7 @@ export default class YGOCardPlugin
while (statement.step()) {
results.push(statement.getAsObject());
}
statement.free();
return results.map((obj) => plainToInstance(YGOProCard, obj));
}
private queryInAllDBs(value: string, matchCount?: number) {
......@@ -121,7 +122,7 @@ export default class YGOCardPlugin
'\n' +
_.repeat('-', borderLength) +
'\n' +
session.text('.select-suffix')
session.text('.select-suffix'),
);
const reply = await session.prompt();
if (!reply) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment