コード例 #1
0
ファイル: enchant.go プロジェクト: hermanschaaf/enchant
// Free frees the Enchant broker and dictionary, and needs
// to be called when use of the library is no longer needed
// to prevent memory leaks.
func (e *Enchant) Free() {
	if e.dict != nil {
		C.enchant_broker_free_dict(e.broker, e.dict)
	}
	C.enchant_broker_free(e.broker)
}
コード例 #2
0
ファイル: enchant.go プロジェクト: taruti/enchant
// Free frees the Enchant broker and dictionary, and needs
// to be called when use of the library is no longer needed
// to prevent memory leaks.
func (e *Enchant) Free() {
	C.enchant_broker_free(e.broker)
}