mirror of
https://github.com/brl/mutter.git
synced 2025-03-12 14:25:07 +00:00

If the wl_surface resource happens to be destroyed before any other role resource, the destructor for the latter will attempt to access/modify random memory. Fix this by ensuring the associated resources are destroyed on the wl_surface destructor, this will free all associated memory and remove the resources ahead of their imminent destruction. https://bugzilla.gnome.org/show_bug.cgi?id=745734