ungerik / go-cairo

Go binding for the cairo graphics library
Other
146 stars 33 forks source link

context should be destroyed in surface.Destroy #14

Closed thepigs closed 8 years ago

thepigs commented 8 years ago

Without this change surface reference count remains > 0.

func (self *Surface) Destroy() {
+        C.cairo_destroy(self.context)
        C.cairo_surface_destroy(self.surface)
}
ungerik commented 8 years ago

Added this, thanks.