all repos — fluxbox @ fad5148752284ed6a29fc095a57355749709fae3

custom fork of the fluxbox windowmanager

Fixed memorybug and typeo
fluxgen fluxgen
commit

fad5148752284ed6a29fc095a57355749709fae3

parent

11ae668af7ca716285f7768c68f5d04a153c3bd2

1 files changed, 8 insertions(+), 6 deletions(-)

jump to
M src/Keys.ccsrc/Keys.cc

@@ -1,4 +1,4 @@

-// Key2.cc for Fluxbox - an X11 Window manager +// Keys.cc for Fluxbox - an X11 Window manager // Copyright (c) 2001 Henrik Kinnunen (fluxgen@linuxmail.org) // // Permission is hereby granted, free of charge, to any person obtaining a

@@ -19,7 +19,7 @@ // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING

// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER // DEALINGS IN THE SOFTWARE. -//$Id: Keys.cc,v 1.5 2002/01/08 12:13:25 fluxgen Exp $ +//$Id: Keys.cc,v 1.6 2002/01/08 21:45:49 fluxgen Exp $ #ifdef HAVE_CONFIG_H # include "config.h"

@@ -133,9 +133,9 @@ if (filename)

load(filename); } -Keys::~Keys() { - deleteTree(); +Keys::~Keys() { ungrabKeys(); + deleteTree(); } //--------- deleteTree -----------

@@ -174,7 +174,9 @@ return false;

//ungrab all keys ungrabKeys(); - + //free memory of previous grabs + deleteTree(); + XSync(m_display, False); //open the file

@@ -272,7 +274,7 @@ strlen(getActionStr(Keys::EXECUTE)));

//add the keychain to list if (!mergeTree(current_key)) - cerr<<"Keys: Faild to merge keytree!"<<endl; + cerr<<"Keys: Failed to merge keytree!"<<endl; #ifdef DEBUG if (m_actionlist[i].action == Keys::EXECUTE) {