Skip to content

Commit

Permalink
Update js to use _malloc
Browse files Browse the repository at this point in the history
  • Loading branch information
aglitchman committed Apr 24, 2024
1 parent 815d958 commit 482c3e8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion liveupdate_reszip/lib/web/library_reszip.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@ var LibraryResZip = {
},
onload: function (response) {
var ab = new Uint8Array(response);
var b = allocate(ab, "i8", ALLOC_NORMAL);
var b = _malloc(ab.length);
HEAPU8.set(ab, b);
{{{ makeDynCall('viii', 'onload') }}}(context, b, ab.length);
_free(b);
},
Expand Down

0 comments on commit 482c3e8

Please sign in to comment.