[Wayland-bugs] [Bug 782109] wayland: memory leak when exporting handle
gtk+ (GNOME Bugzilla)
bugzilla at gnome.org
Tue May 9 15:19:27 UTC 2017
https://bugzilla.gnome.org/show_bug.cgi?id=782109
--- Comment #10 from Jonas Ã…dahl <jadahl at gmail.com> ---
Created attachment 351443
--> https://bugzilla.gnome.org/attachment.cgi?id=351443&action=edit
GtkWindow: Don't double free export user data
The user data passed when exporting a Wayland window was supposed to be
freed using the destroy_func, as is commonly done. This was previously
broken, as the user data was just NULL:ed when exported, and only
actually destroyed when unexporting before having exported.
While e016d9a5dba6f6f99aee94d0b72c00bee299b96a fixed this, it introduced
a regression, as GtkWindow was nice enough to free the memory anyway
after having received the exported handle, causing it now to double
free.
--
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/20170509/81d52017/attachment.html>
More information about the wayland-bugs
mailing list