Diffusion KWin 0388ed02a6c5

Call destroyWindowManagementInterface from ShellClient::destroyClient

Authored by graesslin on Jun 3 2016, 2:53 PM.

Description

Call destroyWindowManagementInterface from ShellClient::destroyClient

Summary:
So far destroyWindowManagementInterface was only called when the
ShellClient got unmapped. But it's possible (although not recommended)
to just destroy the Surface without prior unmapping. In that case the
PlasmaWindow got leaked.

This change addresses this problem by always calling
destroyWindowManagementInterface from ShellClient::destroyClient.

Reviewers: Plasma

Subscribers: plasma-devel

Tags: Plasma

Differential Revision: https://phabricator.kde.org/D1762