prepare for release

This commit is contained in:
Jarred Sumner
2022-05-16 18:45:46 -07:00
parent a372a0dd6d
commit ba36f5db7e
3 changed files with 279 additions and 159 deletions

View File

@@ -257,7 +257,10 @@ static JSC::JSValue rebindObject(JSC::JSGlobalObject* globalObject, JSC::JSValue
else
value = target->get(globalObject, propertyName);
int index = sqlite3_bind_parameter_index(stmt, WTF::String(propertyName.string()).utf8().data());
// Ensure this gets freed on scope clear
auto utf8 = WTF::String(propertyName.string()).utf8();
int index = sqlite3_bind_parameter_index(stmt, utf8.data());
if (index == 0) {
throwException(globalObject, scope, createError(globalObject, "Unknown parameter \"" + propertyName.string() + "\""_s));
return JSValue();