コード例 #1
0
ファイル: messages.go プロジェクト: gmuch/gmuch
func (ms *Messages) Close() error {
	return (*cStruct)(ms).doClose(func() error {
		C.notmuch_messages_destroy(ms.toC())
		return nil
	})
}
コード例 #2
0
ファイル: notmuch.go プロジェクト: vlmarek/notmuch-solaris
/* Destroy a notmuch_messages_t object.
 *
 * It's not strictly necessary to call this function. All memory from
 * the notmuch_messages_t object will be reclaimed when the containing
 * query object is destroyed.
 */
func (self *Messages) Destroy() {
	if self.messages != nil {
		C.notmuch_messages_destroy(self.messages)
	}
}