diff options
author | Robin Burchell <robin.burchell@viroteck.net> | 2014-08-17 17:17:14 +0200 |
---|---|---|
committer | Robin Burchell <robin.burchell@viroteck.net> | 2014-08-18 13:52:50 +0200 |
commit | 9a4d55b1cdd0f19267794bf58652fcdbf1efeefc (patch) | |
tree | 950c92e82953b5317ef3af05cca0e30ef6abe75a /src/compositor/wayland_wrapper/qwlcompositor.cpp | |
parent | a4cae6f7629d263265f79b8c5819d9ed576e62af (diff) |
QWaylandCompositor: Warn if there are still destroyed surfaces on destruction.
This means there will be no spurious warning on a well written compositor that
cannot be avoided.
Change-Id: Id4405ffe7ba080096547346c0092bedf28a3b196
Reviewed-by: Giulio Camuffo <giulio.camuffo@jollamobile.com>
Diffstat (limited to 'src/compositor/wayland_wrapper/qwlcompositor.cpp')
-rw-r--r-- | src/compositor/wayland_wrapper/qwlcompositor.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/compositor/wayland_wrapper/qwlcompositor.cpp b/src/compositor/wayland_wrapper/qwlcompositor.cpp index d89d653d3..404fa9d0f 100644 --- a/src/compositor/wayland_wrapper/qwlcompositor.cpp +++ b/src/compositor/wayland_wrapper/qwlcompositor.cpp @@ -174,6 +174,9 @@ void Compositor::init() Compositor::~Compositor() { + if (!m_destroyed_surfaces.isEmpty()) + qWarning("QWaylandCompositor::cleanupGraphicsResources() must be called manually"); + delete m_outputExtension; delete m_surfaceExtension; delete m_subSurfaceExtension; |