diff --git a/src/xrt/compositor/main/comp_window_direct_mode.cpp b/src/xrt/compositor/main/comp_window_direct_mode.cpp index 351b1ba88..07e8a46a5 100644 --- a/src/xrt/compositor/main/comp_window_direct_mode.cpp +++ b/src/xrt/compositor/main/comp_window_direct_mode.cpp @@ -197,7 +197,7 @@ comp_window_direct_destroy(struct comp_window* w) w_direct->connection = nullptr; } - delete w; + delete reinterpret_cast(w); } static void