Commit 1aca236e authored by Giulio Camuffo's avatar Giulio Camuffo
Browse files

Remove deleted views from the list


Change-Id: Ic4c998347e14c17693bea461452d6ee8fc41064b
Reviewed-by: default avatarLaszlo Agocs <laszlo.agocs@digia.com>
Showing with 3 additions and 1 deletion
...@@ -64,8 +64,10 @@ QWaylandSurfaceView::QWaylandSurfaceView(QWaylandSurface *surf) ...@@ -64,8 +64,10 @@ QWaylandSurfaceView::QWaylandSurfaceView(QWaylandSurface *surf)
QWaylandSurfaceView::~QWaylandSurfaceView() QWaylandSurfaceView::~QWaylandSurfaceView()
{ {
if (d->surface) if (d->surface) {
d->surface->destroy(); d->surface->destroy();
d->surface->d_func()->views.removeOne(this);
}
delete d; delete d;
} }
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment