fix memory leak

This commit is contained in:
lixianjing 2020-09-21 00:27:48 -07:00
parent 5e4468cb87
commit d87fc8c379
2 changed files with 1 additions and 0 deletions

View File

@ -455,6 +455,7 @@ ret_t canvas_offline_destroy(canvas_t* canvas) {
if (bitmap != NULL) {
bitmap_destroy(bitmap);
}
canvas_reset(canvas);
TKMEM_FREE(canvas);
return RET_OK;

BIN
tests/testdata/event_log_800x600.bin vendored Normal file

Binary file not shown.