Memory leak? You don't release that memory in your code.
Unfortunately that ultimately bad code is provided as an example in the library. I have serious doubts about the quality of the whole library if such code is provided as an example.
Well if i'm correct the memory gets flooded at some point with a memory leak, but i'm nowhere near a point where i can look at a piece of code and see that it's a memory problem.
But looking back at your anwser again.
That line of code you mentioned probably fills the memory with a generated Irsignal.
And with not releasing (probably deleting in noob terms) the memory i flood the memory since it's filling the memory with a new generated signal each time.
So i need to find a way to delete/release that piece of memory.
I already told you the memory leak. In the example code you call
Rc5Renderer::newIrSignal
twice which returns a newly allocated object but that object is not freed in the code. That's why most modern libraries doesn't return object pointers but references. You've chosen another library so you're responsible for the memory management.
The operator is called "delete". That should help to find the documentation on the Internet.