Skip to content

Commit

Permalink
RGBMatrix: Remove unused, dead allocation
Browse files Browse the repository at this point in the history
@tannewt noticed this in a pull request review.  The allocated
memory was never used, but the GC would have collected it eventually.
  • Loading branch information
jepler committed Sep 1, 2020
1 parent 71c63c2 commit 3c08333
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion shared-module/rgbmatrix/RGBMatrix.c
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,6 @@ void common_hal_rgbmatrix_rgbmatrix_reconstruct(rgbmatrix_rgbmatrix_obj_t* self,
common_hal_rgbmatrix_timer_disable(self->timer);
if (framebuffer) {
self->framebuffer = framebuffer;
framebuffer = mp_obj_new_bytearray_of_zeros(self->bufsize);
mp_get_buffer_raise(self->framebuffer, &self->bufinfo, MP_BUFFER_READ);
if (mp_get_buffer(self->framebuffer, &self->bufinfo, MP_BUFFER_RW)) {
self->bufinfo.typecode = 'H' | MP_OBJ_ARRAY_TYPECODE_FLAG_RW;
Expand Down

0 comments on commit 3c08333

Please sign in to comment.