diff --git a/src/wayland/server/qtsurfaceextension_interface.cpp b/src/wayland/server/qtsurfaceextension_interface.cpp index 7b388afa8d..fbe2fbe388 100644 --- a/src/wayland/server/qtsurfaceextension_interface.cpp +++ b/src/wayland/server/qtsurfaceextension_interface.cpp @@ -219,6 +219,9 @@ QtExtendedSurfaceInterface::Private *QtExtendedSurfaceInterface::d_func() const void QtExtendedSurfaceInterface::close() { Q_D(); + if (!d->resource) { + return; + } qt_extended_surface_send_close(d->resource); d->client->flush(); }