From ec44c18a421ea2d9934acbc54fc12b31b35635eb Mon Sep 17 00:00:00 2001 From: lovasoa Date: Thu, 12 Aug 2021 12:45:34 +0000 Subject: [PATCH] Fix #470 --- src/api.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/api.js b/src/api.js index fba33e57..854bf32e 100644 --- a/src/api.js +++ b/src/api.js @@ -646,7 +646,7 @@ Module["onRuntimeInitialized"] = function onRuntimeInitialized() { by bound parameters. */ Statement.prototype["reset"] = function reset() { - this.freemem(); + this["freemem"](); return ( sqlite3_clear_bindings(this.stmt) === SQLITE_OK && sqlite3_reset(this.stmt) === SQLITE_OK @@ -666,7 +666,7 @@ Module["onRuntimeInitialized"] = function onRuntimeInitialized() { */ Statement.prototype["free"] = function free() { var res; - this.freemem(); + this["freemem"](); res = sqlite3_finalize(this.stmt) === SQLITE_OK; delete this.db.statements[this.stmt]; this.stmt = NULL;