if (!gdk_pixbuf_get_has_alpha(pixbuf) ||
gdk_pixbuf_get_n_channels(pixbuf) != 4) {
- gdk_pixbuf_unref(pixbuf);
+ g_object_unref(pixbuf);
return NULL;
}
GL_RGBA, GL_UNSIGNED_BYTE, pixels);
cairo_device_release(display->device);
- gdk_pixbuf_unref(pixbuf);
+ g_object_unref(pixbuf);
return surface;
}
if (!gdk_pixbuf_get_has_alpha(pixbuf) ||
gdk_pixbuf_get_n_channels(pixbuf) != 4) {
- gdk_pixbuf_unref(pixbuf);
+ g_object_unref(pixbuf);
return NULL;
}
}
}
- gdk_pixbuf_unref(pixbuf);
+ g_object_unref(pixbuf);
return surface;
}
argb_pixels = malloc (height * width * 4);
if (argb_pixels == NULL) {
- gdk_pixbuf_unref(pixbuf);
+ g_object_unref(pixbuf);
return NULL;
}
}
}
- gdk_pixbuf_unref(pixbuf);
+ g_object_unref(pixbuf);
buffer = ec->create_buffer(ec, width, height,
&ec->compositor.premultiplied_argb_visual,
NULL, NULL);
normal = gdk_pixbuf_flip(pixbuf, FALSE);
gdk_pixbuf_save(normal, buffer, "png", &error, NULL);
- gdk_pixbuf_unref(normal);
- gdk_pixbuf_unref(pixbuf);
+ g_object_unref(normal);
+ g_object_unref(pixbuf);
free(data);
}
}