zig-cairo icon indicating copy to clipboard operation
zig-cairo copied to clipboard

Refcounted opaque types should not expose their reference() and destroy() functions

Open jackdbd opened this issue 3 years ago • 0 comments

As stated in the Cairo Memory Management documentation, reference() and destroy() should not be part of the public API:

Refcounted opaque types all have a ..._reference() function to increase the refcount by one and a ..._destroy() to decrease the refcount by one. These should not be exposed to the user of the language binding, but rather used to implement memory management within the language binding.

jackdbd avatar Feb 03 '21 17:02 jackdbd