X-Git-Url: https://git.street.me.uk/andy/viking.git/blobdiff_plain/f63ca925baa9bd8b9d9d346cb6be00268ed14269..511792a4991443fac7b57f48d2bae2d857fdbd93:/src/thumbnails.c?ds=sidebyside diff --git a/src/thumbnails.c b/src/thumbnails.c index 8b48dce6..c6d3a0c4 100644 --- a/src/thumbnails.c +++ b/src/thumbnails.c @@ -122,7 +122,7 @@ GdkPixbuf *a_thumbnails_scale_pixbuf(GdkPixbuf *src, int max_w, int max_h) if (w <= max_w && h <= max_h) { - gdk_pixbuf_ref(src); + g_object_ref ( G_OBJECT ( src ) ); return src; } else @@ -155,7 +155,7 @@ static GdkPixbuf *child_create_thumbnail(const gchar *path) if (image) { GdkPixbuf *thumb = save_thumbnail(path, image); - gdk_pixbuf_unref ( image ); + g_object_unref ( G_OBJECT ( image ) ); return thumb; } @@ -289,7 +289,7 @@ GdkPixbuf *a_thumbnails_get(const gchar *pathname) goto out; err: if (thumb) - gdk_pixbuf_unref(thumb); + g_object_unref ( G_OBJECT ( thumb ) ); thumb = NULL; out: g_free(path);