Skip to content

Commit

Permalink
Fix #470
Browse files Browse the repository at this point in the history
  • Loading branch information
lovasoa committed Aug 12, 2021
1 parent e178659 commit ec44c18
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/api.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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;
Expand Down

0 comments on commit ec44c18

Please sign in to comment.