mirror of
https://gitlab.freedesktop.org/wayland/wayland.git
synced 2025-11-15 06:59:49 -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
|
|
@ -61,8 +61,8 @@ screenshooter_shoot(struct wl_client *client, struct wl_screenshooter *shooter)
|
|||
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);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue