Skip to content

Commit a7ac0db

Browse files
committed
Del trans_data
Deletes the trans_data list after its no longer needed.
1 parent a8809b0 commit a7ac0db

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

adafruit_imageload/png.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,7 @@ def load(
9494
for i in range(len(trns_data)):
9595
if trns_data[i] == 0:
9696
pal.make_transparent(i)
97+
del trns_data
9798
elif chunk == b"IDAT":
9899
data.extend(file.read(size))
99100
elif chunk == b"IEND":

0 commit comments

Comments
 (0)