comp: fix cleanup of direct window, delete with correct type

Found by gcc address sanitizer.
This commit is contained in:
Christoph Haag 2019-08-13 01:44:56 +02:00
parent 5fa58efcbf
commit 8cda1b6f67

View file

@ -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