[Wayland-bugs] [Bug 100947] The xxxx_set_user_data() API cause client data corrupted in listener callbacks
bugzilla-daemon at freedesktop.org
bugzilla-daemon at freedesktop.org
Fri May 5 13:31:07 UTC 2017
https://bugs.freedesktop.org/show_bug.cgi?id=100947
Daniel Stone <daniel at fooishbar.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Resolution|--- |NOTABUG
Status|NEW |RESOLVED
--- Comment #1 from Daniel Stone <daniel at fooishbar.org> ---
In main.cpp, you call 'output.SetUserData(this)' and
'surface.SetUserData(this)', from within an Application class; the
Output/Surface listeners then try to access the Application class as an Output
or Surface class. Changing it to 'output.SetUserData(&output)' and
'surface.SetUserData(&surface)' instead, fixes the bug.
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/wayland-bugs/attachments/20170505/07c07402/attachment.html>
More information about the wayland-bugs
mailing list