mirror of
https://gitlab.freedesktop.org/monado/monado.git
synced 2025-01-01 12:46:12 +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;
|
w_direct->connection = nullptr;
|
||||||
}
|
}
|
||||||
|
|
||||||
delete w;
|
delete reinterpret_cast<struct comp_window_direct*>(w);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
|
Loading…
Reference in a new issue