Memory leak, what am I doing wrong?

Well it's never been reported until now :slight_smile:
but yes it would have to hold onto the old image until a new one arrives in order to compare the two.
Also it works across different topics - so if you had changing topics on the msg (maybe for some ID or other) - then there would be an old image per topic... which if they had something like date in (for no good reason I can think of :slight_smile: then it could potentially grow indefinitely.

2 Likes