Skip to content

Commit 4236f4e

Browse files
Fix cacheSemaphore leaking (#55)
This fixes the leaking destructor.
1 parent 8af0ec4 commit 4236f4e

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/OpenStreetMap-esp32.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,9 @@ OpenStreetMap::~OpenStreetMap()
4545

4646
freeTilesCache();
4747

48+
if (cacheSemaphore)
49+
vSemaphoreDelete(cacheSemaphore);
50+
4851
if (pngCore0)
4952
{
5053
pngCore0->~PNG();

0 commit comments

Comments
 (0)