mirror of
https://gitlab.freedesktop.org/wayland/wayland.git
synced 2025-11-06 13:29:48 -05:00
Replace gdk_pixbuf_unref with g_object_unref
Because gdk_pixbuf_unref is deprecated and for compatability with gdk-pixbuf 2.21.4.
This commit is contained in:
parent
d5fb9cc769
commit
c4df99cb2c
3 changed files with 8 additions and 8 deletions
|
|
@ -211,7 +211,7 @@ create_buffer_from_png(struct wlsc_compositor *ec,
|
|||
|
||||
argb_pixels = malloc (height * width * 4);
|
||||
if (argb_pixels == NULL) {
|
||||
gdk_pixbuf_unref(pixbuf);
|
||||
g_object_unref(pixbuf);
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
|
@ -250,7 +250,7 @@ create_buffer_from_png(struct wlsc_compositor *ec,
|
|||
}
|
||||
}
|
||||
|
||||
gdk_pixbuf_unref(pixbuf);
|
||||
g_object_unref(pixbuf);
|
||||
|
||||
buffer = ec->create_buffer(ec, width, height,
|
||||
&ec->compositor.premultiplied_argb_visual,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue