diff --git a/js/src/jsapi.h b/js/src/jsapi.h index 21676d3ca104..3bdc88ea37e9 100644 --- a/js/src/jsapi.h +++ b/js/src/jsapi.h @@ -4562,7 +4562,7 @@ class MOZ_RAII JSAutoByteString } ~JSAutoByteString() { - js_free(mBytes); + JS_free(nullptr, mBytes); } /* Take ownership of the given byte array. */ @@ -4607,7 +4607,7 @@ class MOZ_RAII JSAutoByteString } private: - char* mBytes; + char* mBytes; MOZ_DECL_USE_GUARD_OBJECT_NOTIFIER /* Copy and assignment are not supported. */