Memory leak in 22.10

I have similar issue with similar code . My version of Aspose.Total is 22.10. As a result - memory leaks and out of the memory errors.

@OleksandrFuntov Could you please create a simple application that will allow us to reproduce the problem? We will check the problem and provide you more information.