Skip to content

Commit 2c1e206

Browse files
committed
Change free function
1 parent aa423cc commit 2c1e206

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

shared-module/displayio/Bitmap.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929
#include <string.h>
3030

3131
#include "py/runtime.h"
32+
#include "py/gc.h"
3233

3334
enum { ALIGN_BITS = 8 * sizeof(uint32_t) };
3435

@@ -84,7 +85,7 @@ void common_hal_displayio_bitmap_construct_from_buffer(displayio_bitmap_t *self,
8485

8586
void common_hal_displayio_bitmap_deinit(displayio_bitmap_t *self) {
8687
if (self->data_alloc) {
87-
m_free(self->data);
88+
gc_free(self->data);
8889
}
8990
self->data = NULL;
9091
}

0 commit comments

Comments
 (0)