just some extra safety
This commit is contained in:
parent
9f0885bcbe
commit
ccf0afe07e
1 changed files with 3 additions and 1 deletions
|
@ -19,7 +19,7 @@
|
||||||
// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
||||||
// DEALINGS IN THE SOFTWARE.
|
// DEALINGS IN THE SOFTWARE.
|
||||||
|
|
||||||
// $Id: WinClient.cc,v 1.3 2003/04/15 12:12:29 fluxgen Exp $
|
// $Id: WinClient.cc,v 1.4 2003/04/25 11:21:17 fluxgen Exp $
|
||||||
|
|
||||||
#include "WinClient.hh"
|
#include "WinClient.hh"
|
||||||
|
|
||||||
|
@ -28,6 +28,7 @@
|
||||||
#include "Screen.hh"
|
#include "Screen.hh"
|
||||||
#include "i18n.hh"
|
#include "i18n.hh"
|
||||||
#include "FbAtoms.hh"
|
#include "FbAtoms.hh"
|
||||||
|
#include "EventManager.hh"
|
||||||
|
|
||||||
#include <iostream>
|
#include <iostream>
|
||||||
#include <algorithm>
|
#include <algorithm>
|
||||||
|
@ -113,6 +114,7 @@ WinClient::~WinClient() {
|
||||||
|
|
||||||
if (m_win != 0)
|
if (m_win != 0)
|
||||||
m_win->removeClient(*this);
|
m_win->removeClient(*this);
|
||||||
|
FbTk::EventManager::instance()->remove(window());
|
||||||
m_win = 0;
|
m_win = 0;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue