Skip to content

Commit

Permalink
Merge pull request #673 from ckirmse/bus_rgb_cleanup_in_release
Browse files Browse the repository at this point in the history
free resources in Bus_RGB::release()
  • Loading branch information
lovyan03 authored Feb 5, 2025
2 parents a18452b + 2407082 commit 61b5e0a
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/lgfx/v1/platforms/esp32s3/Bus_RGB.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -334,6 +334,18 @@ namespace lgfx

void Bus_RGB::release(void)
{
if (_intr_handle) {
esp_intr_free(_intr_handle);
}
if (_i80_bus)
{
esp_lcd_del_i80_bus(_i80_bus);
}
if (_dmadesc)
{
heap_caps_free(_dmadesc);
_dmadesc = nullptr;
}
}

//----------------------------------------------------------------------------
Expand Down

0 comments on commit 61b5e0a

Please sign in to comment.