示例#1
0
//Close releases the pattern's resources.
//
//Originally cairo_pattern_destroy.
func (p *XtensionPattern) Close() error {
	if p.p == nil {
		return nil
	}
	err := p.Err()
	runtime.SetFinalizer(p, nil)
	C.cairo_pattern_destroy(p.p)
	p.p = nil
	return err
}
示例#2
0
// void cairo_pattern_destroy (cairo_pattern_t *pattern);
func (self *Pattern) Destroy() {
	C.cairo_pattern_destroy(self.pattern)
}