wayland.shell: fix memory corruption in wl_shell
Invalid data was set as user data for wl_shell_surface, causing access to invalid memory at drop time. Fixes #60
This commit is contained in:
parent
05418c118f
commit
f2751c824f
|
@ -84,7 +84,7 @@ where
|
|||
return;
|
||||
}
|
||||
shell_surface
|
||||
.set_user_data(Box::into_raw(Box::new(unsafe { surface.clone_unchecked() })) as *mut _);
|
||||
.set_user_data(Box::into_raw(Box::new(unsafe { (surface.clone_unchecked(), shell.clone_unchecked()) })) as *mut _);
|
||||
evlh.register(
|
||||
&shell_surface,
|
||||
shell_surface_implementation(),
|
||||
|
|
Loading…
Reference in New Issue