Пример #1
0
func (ms *Messages) Close() error {
	return (*cStruct)(ms).doClose(func() error {
		C.notmuch_messages_destroy(ms.toC())
		return nil
	})
}
Пример #2
0
/* 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)
	}
}