mirror of
https://github.com/meshtastic/firmware.git
synced 2026-09-21 13:55:24 -04:00
fix(inkhud): getEmptyTiles hands out raw pointers from owned tiles
This commit is contained in:
1 parent
b80c80e7f7
commit
ada62f48fc
1 file changed
+1
-1
@@ -539,7 +539,7 @@ std::vector<InkHUD::Tile *> InkHUD::WindowManager::getEmptyTiles()
|
||||
for (auto &t : userTiles) {
|
||||
Applet *a = t->getAssignedApplet();
|
||||
if (!a || !a->isActive())
|
||||
empty.push_back(t);
|
||||
empty.push_back(t.get());
|
||||
}
|
||||
|
||||
return empty;
|
||||
|
||||
Reference in new issue
Block a user