Created attachment 6354 Possible patch Ref: http://git.xfce.org/apps/ristretto/tree/src/file.c#n552
Thanks! Merged as https://git.xfce.org/apps/ristretto/commit/?id=69b7459957427aed16caddb699c5b496dfb6deee
Closing.
Reopening having reverted the commit - need to investigate whether the memory leak is there.
Igor referenced this bugreport in commit f148ad4b6787d41a33ebaf25106439402f0fed6c Fix memory leak https://git.xfce.org/apps/ristretto/commit?id=f148ad4b6787d41a33ebaf25106439402f0fed6c