私の理解では、Vala と Genie にはガベージ コレクションではなく参照カウントがあります。
Valadoc.org によると、これは次のとおりです。
string path = Path.build_filename ("my", "full", "path/to.txt");
これが得られます:
a newly-allocated string that must be freed with g_free
これは正しいですか、g_free
それとも参照カウントのために必要ありませんか?
オブジェクトstring
内にラップされているg_free
場合string
、オブジェクトの破棄時にアクションが実行されますか?