From 1cc65aa20eaf294e768c2f0f2d55d1dfd055a285 Mon Sep 17 00:00:00 2001 From: Waldo Bastian Date: Thu, 14 Sep 2000 06:03:47 +0000 Subject: [PATCH] WABA: Fixed memory leaks. svn path=/trunk/kdebase/kwin/; revision=63827 --- workspace.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/workspace.cpp b/workspace.cpp index 8e8ff8b4f8..69756955cb 100644 --- a/workspace.cpp +++ b/workspace.cpp @@ -377,6 +377,7 @@ Workspace::~Workspace() delete (*it); XMapWindow( qt_xdisplay(), win ); } + delete desktop_widget; delete tab_box; delete popup; delete keys; @@ -772,6 +773,7 @@ bool Workspace::keyRelease(XKeyEvent key) activateClient( tab_box->currentClient() ); } } + XFreeModifiermap(xmk); } if (control_grab){ XModifierKeymap* xmk = XGetModifierMapping(qt_xdisplay()); @@ -785,6 +787,7 @@ bool Workspace::keyRelease(XKeyEvent key) if ( tab_box->currentDesktop() != -1 ) setCurrentDesktop( tab_box->currentDesktop() ); } + XFreeModifiermap(xmk); } return FALSE; } @@ -885,6 +888,7 @@ void Workspace::grabKey(KeySym keysym, unsigned int mod){ XKeysymToKeycode(qt_xdisplay(), XK_Num_Lock)) NumLockMask = (1<