freetype-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[freetype2] master 0a3d2bb: [doc] FT_Open_Args: Clarify the ownership of


From: Werner LEMBERG
Subject: [freetype2] master 0a3d2bb: [doc] FT_Open_Args: Clarify the ownership of `pathname'.
Date: Tue, 22 Oct 2019 12:49:51 -0400 (EDT)

branch: master
commit 0a3d2bb99b45b72e1d45185ab054efa993d97210
Author: Filip Filmar <address@hidden>
Commit: Werner Lemberg <address@hidden>

    [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.
---
 include/freetype/freetype.h | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/include/freetype/freetype.h b/include/freetype/freetype.h
index a6bb667..5eb613b 100644
--- a/include/freetype/freetype.h
+++ b/include/freetype/freetype.h
@@ -2078,7 +2078,8 @@ FT_BEGIN_HEADER
    *     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.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]