Added documentation about freeing a GIF

This commit is contained in:
gamblor21 2023-03-22 18:00:18 -05:00
parent 2365f9b3be
commit 98ebc676ce
1 changed files with 8 additions and 0 deletions

View File

@ -98,6 +98,14 @@
//| display_bus.send(42, struct.pack(">hh", 0, odg.bitmap.width - 1))
//| display_bus.send(43, struct.pack(">hh", 0, odg.bitmap.height - 1))
//| display_bus.send(44, d.bitmap)
//|
//| # The following optional code will free the OnDiskGif and allocated resources
//| # after use. This may be required before loading a new GIF in situations
//| # where RAM is limited and the first GIF took most of the RAM.
//| odg.deinit()
//| odg = None
//| gc.collect()
//|
//| """
//|
//| def __init__(self, file: str) -> None: