mirror of
https://gitlab.freedesktop.org/monado/monado.git
synced 2024-12-29 11:06:18 +00:00
comp: fix cleanup of direct window, delete with correct type
Found by gcc address sanitizer.
This commit is contained in:
parent
5fa58efcbf
commit
8cda1b6f67
|
@ -197,7 +197,7 @@ comp_window_direct_destroy(struct comp_window* w)
|
|||
w_direct->connection = nullptr;
|
||||
}
|
||||
|
||||
delete w;
|
||||
delete reinterpret_cast<struct comp_window_direct*>(w);
|
||||
}
|
||||
|
||||
static void
|
||||
|
|
Loading…
Reference in a new issue