Skip to content

Commit 0505933

Browse files
committed
Jolt.js: Fix memory leak in Q0/1/2/3.setPower
1 parent c2be436 commit 0505933

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

ChangeLog

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,9 @@
1818
Graphics.wrapString fix issue of line length of the line after a string with multiple dashes in
1919
Updated test screen to work better when watch has been idle for a while
2020
nRF5x: Fix assertion failure caused by receiving manufacturer data with 0 length
21+
Bluetooth: Increase size of max advertising received (now ~120b on high MTU builds)
22+
nRF52840: Fix crash if receiving >32b of advertisement data
23+
Jolt.js: Fix memory leak in Q0/1/2/3.setPower
2124

2225
2v27 : nRF5x: Ensure Bluetooth notifications work correctly when two separate connections use the same handle for their characteristics
2326
nRF5x: Remove handlers from our handlers array when a device is disconnected

libs/misc/jswrap_qwiic.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,6 @@ To control the power, use `Qwiic.setPower`, for example: `Jolt.Q0.setPower(true)
5656
This turns power for the given Qwiic connector on or off. See `Qwiic` for more information.
5757
*/
5858
JsVar *jswrap_jqwiic_setPower(JsVar *parent, bool isOn) {
59-
JsVar *o = jsvNewObject();
60-
if (!o) return 0;
6159
JsVar *fet = jsvObjectGetChildIfExists(parent, "fet");
6260
if (fet) {
6361
jshPinOutput(jsvGetIntegerAndUnLock(fet), isOn);

0 commit comments

Comments
 (0)