cucim icon indicating copy to clipboard operation
cucim copied to clipboard

Wrapping resource(memory) handling code with RAII

Open gigony opened this issue 3 years ago • 0 comments

Is your feature request related to a problem? Please describe.

Current implementation is not handling error cases well -- memory allocated is manually freed by calling free() or cucim_free() method.

We need to improve the whole code to use RAII.

Describe the solution you'd like

Create a utility class to handle resources.

gigony avatar Oct 30 '21 00:10 gigony