From 03c55cc40d0ad996c1d0ffb51560d9357afaf8e0 Mon Sep 17 00:00:00 2001 From: "Claudius \"keldu\" Holeksa" Date: Sat, 5 Aug 2023 18:14:21 +0200 Subject: c++,window: Fixed minor issues regarding the changed indirection --- c++/window/xcb.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'c++/window') diff --git a/c++/window/xcb.cpp b/c++/window/xcb.cpp index cd0e77c..4fd83dc 100644 --- a/c++/window/xcb.cpp +++ b/c++/window/xcb.cpp @@ -221,9 +221,10 @@ window::window(device& dev_, xcb_window_ {} window::~window(){ - device_.window_destroyed(xcb_window_); - xcb_destroy_window(device_.xcb_connection, xcb_window_); - device_.flush(); + assert(device_); + device_->window_destroyed(xcb_window_); + xcb_destroy_window(device_->xcb_connection, xcb_window_); + device_->flush(); } void window::show(){ -- cgit v1.2.3