Memory leak about this library
I have a long lasting server that keep on generating pdf/png from svg using this library. However, that server need to be restarted after a few weeks usage, due to memory leakage.
After a few days of researching, the memory leakage's root causing library is from this library. With a few hours time I try to figure out why memory is leaked from this library, but I have to apologize that I am not good at C++ so I gave up.
Now I have change the svg->png/pdf job using puppeteer which is a great library from google's team, in replace of rsvg to do me the favour. I can say rsvg is a good library, but helplessly I need to switch to other library at this moment. Indeed rsvg use less memory at first compared with puppeteer. I really hope if someone can fix it later.
For someone who wanna use this library: If you can fix it or you don't need to run this rsvg for hundreds of times, just use it. Otherwise, use puppeteer to do the job.