Skip to content

Commit f87b0b2

Browse files
authored
Merge pull request #169 from baba-dev/codex/update-cleanup-logic-in-hal_camera.cpp
Fix camera cleanup to free img_show_data pointer
2 parents 631760a + b90f94d commit f87b0b2

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

platforms/tab5/main/hal/components/hal_camera.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -323,8 +323,8 @@ void app_camera_display(void* arg)
323323
constexpr uint32_t kRgb565BytesPerPixel = 2;
324324
uint32_t img_show_size = screen_width * screen_height * kRgb565BytesPerPixel;
325325
// uint32_t img_offset = 280 * 720 * 2;
326-
heap_caps_free(img_show);
327-
img_show = NULL;
326+
heap_caps_free(img_show_data);
327+
img_show_data = NULL;
328328
}
329329
// close(camera->fd);
330330

0 commit comments

Comments
 (0)