Exemple #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
}
// void cairo_pattern_destroy (cairo_pattern_t *pattern);
func (self *Pattern) Destroy() {
	C.cairo_pattern_destroy(self.pattern)
}