15.10   Garbage Collection

HALCON/Python objects that have some natively backed resources implement cleanup via finalizers, implementing __del__.

This means no additional care needs to be taken to ensure that native resources such as memory are freed after a variable is no longer reachable.

For example, CPython uses ref counting to implement garbage collection, which results in moderately deterministic behavior.