Skip to content

Commit

Permalink
Fix a crash when loading a lot of images at once (kivy#8939)
Browse files Browse the repository at this point in the history
  • Loading branch information
clayote authored Dec 8, 2024
1 parent ea40582 commit 34b7372
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kivy/cache.py
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ def _purge_oldest(category, maxpurge=1):
import heapq
time = Clock.get_time()
heap_list = []
for key in Cache._objects[category]:
for key in list(Cache._objects[category]):
obj = Cache._objects[category][key]
if obj['lastaccess'] == obj['timestamp'] == time:
continue
Expand Down

0 comments on commit 34b7372

Please sign in to comment.