examples: Free image_matrix on fmt2rgb888 failure
Signed-off-by: Sachin Parekh <sachin.parekh@espressif.com>pull/20/head
parent
191637e180
commit
8756eb73ed
|
@ -72,6 +72,7 @@ void task_process (void *arg)
|
|||
if (true != res)
|
||||
{
|
||||
ESP_LOGE(TAG, "fmt2rgb888 failed, fb: %d", fb->len);
|
||||
dl_matrix3du_free(image_matrix);
|
||||
continue;
|
||||
}
|
||||
|
||||
|
|
|
@ -101,6 +101,7 @@ void task_process(void *arg)
|
|||
if (true != res)
|
||||
{
|
||||
ESP_LOGE(TAG, "fmt2rgb888 failed, fb: %d", fb->len);
|
||||
dl_matrix3du_free(image_matrix);
|
||||
continue;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue