Unicorn HAT and Pygame / memory leak


Hello. I’m having fun with the Unicorn HAT, but I have two queries:

1 - can I use it at the same time as using Pygame? They appear to be incompatible, in that the Unicorn HAT behaves strangely after I use Pygame, and in that the Unicorn HAT needs code to run from the shell and Pygame needs the desktop environment.

2 - The demo code ends with an error of ‘memory leak of type ws2811_t *’, no destructor found. Is there an easy way to end gracefully without this error?

Thanks in advance for any pointers!