Changed deprecated gdk_pixbuf_unref() call to g_object_unref() in GTK+ ImageList.
This commit is contained in:
parent
ba3efd31d2
commit
99101c0264
|
@ -60,7 +60,7 @@ func (i *imagelist) Append(img *image.RGBA) {
|
||||||
}
|
}
|
||||||
|
|
||||||
i.list = append(i.list, pixbuf)
|
i.list = append(i.list, pixbuf)
|
||||||
C.gdk_pixbuf_unref(basepixbuf)
|
C.g_object_unref(C.gpointer(unsafe.Pointer(basepixbuf)))
|
||||||
C.cairo_surface_destroy(surface)
|
C.cairo_surface_destroy(surface)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue