diff options
author | Claudius "keldu" Holeksa <mail@keldu.de> | 2023-08-05 18:14:21 +0200 |
---|---|---|
committer | Claudius "keldu" Holeksa <mail@keldu.de> | 2023-08-05 18:14:21 +0200 |
commit | 03c55cc40d0ad996c1d0ffb51560d9357afaf8e0 (patch) | |
tree | 313f16aee8c7febb65951f7a8ce3fb3f2f8f34cd /c++/window/xcb.cpp | |
parent | e664537536de989b6d013a8cb6bc0eb2b1fbe0fb (diff) |
c++,window: Fixed minor issues regarding the changed indirection
Diffstat (limited to 'c++/window/xcb.cpp')
-rw-r--r-- | c++/window/xcb.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
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<backend::linux_xcb>::window(device<backend::linux_xcb>& dev_, xcb_window_ {} window<backend::linux_xcb>::~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<backend::linux_xcb>::show(){ |