From 99101c026469b579f3077401254c1b33ab0f1a59 Mon Sep 17 00:00:00 2001 From: Pietro Gagliardi Date: Sat, 11 Oct 2014 17:35:01 -0400 Subject: [PATCH] Changed deprecated gdk_pixbuf_unref() call to g_object_unref() in GTK+ ImageList. --- imagelist_unix.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/imagelist_unix.go b/imagelist_unix.go index dc6e624..1729705 100644 --- a/imagelist_unix.go +++ b/imagelist_unix.go @@ -60,7 +60,7 @@ func (i *imagelist) Append(img *image.RGBA) { } 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) }