Hello,
I want to write an Addon which interacts with a C library. To do this, I am using ctypes which seems to be the easiest way to do this.
Some memory is just kept as global variables in my C part and never exported to Python as it is not needed on the Python side.
To clean up the global stuff, I’ve just exported a “Cleanup” function from my C code. But what’s the right place to call this, so it is called if the Addon is deactivated? Or do I don’t have to care for this as the Addon keeps running anyway and is never really “stopped” until Kodi itself ends?