ref: 0a3d2bb99b45b72e1d45185ab054efa993d97210
parent: 3b8bc65c50b6d306239d461cf96f22f50fc2aed5
author: Filip Filmar <[email protected]>
date: Sat Oct 19 22:05:02 EDT 2019
[doc] FT_Open_Args: Clarify the ownership of `pathname'. Don't expect the function to deallocate the buffer. This may be obvious in C, but it is not so obvious in FFI bindings for FreeType 2.
--- a/include/freetype/freetype.h
+++ b/include/freetype/freetype.h
@@ -2078,7 +2078,8 @@
* The size in bytes of the file in memory.
*
* pathname ::
- * A pointer to an 8-bit file pathname.
+ * A pointer to an 8-bit file pathname. The pointer is not owned by
+ * FreeType.
*
* stream ::
* A handle to a source stream object.