[Wayland-bugs] [Bug 773274] [Wayland] Crash under gdk_wayland_window_attach_image()
gtk+ (GNOME Bugzilla)
bugzilla at gnome.org
Wed Nov 2 11:00:18 UTC 2016
https://bugzilla.gnome.org/show_bug.cgi?id=773274
--- Comment #8 from Olivier Fourdan <ofourdan at redhat.com> ---
Created attachment 338945
--> https://bugzilla.gnome.org/attachment.cgi?id=338945&action=edit
[PATCH] wayland: check valid pending cairo surface
drop_cairo_surfaces() will nullify the drop_cairo_surfaces() (to avoid
reusing the buffer later), but gdk_window_impl_wayland_end_paint()
doesn't check if the drop_cairo_surfaces is still valid prior to calling
gdk_wayland_window_attach_image().
As gdk_wayland_window_attach_image() assumes there is a valid pending
cairo surface, make sure the staging cairo surface is stil lvalid prior
to attaching the image, just like it's done in gdk_wayland_window_show()
as well.
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/wayland-bugs/attachments/20161102/d7bf7eb4/attachment.html>
More information about the wayland-bugs
mailing list