ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/rxvt-unicode/src/keyboard.C
(Generate patch)

Comparing rxvt-unicode/src/keyboard.C (file contents):
Revision 1.49 by sf-exg, Sun Nov 27 12:12:49 2011 UTC vs.
Revision 1.50 by sf-exg, Wed Nov 30 20:01:41 2011 UTC

98 hash [0] = 1; // hash[0] != 0 indicates uninitialized data 98 hash [0] = 1; // hash[0] != 0 indicates uninitialized data
99} 99}
100 100
101keyboard_manager::~keyboard_manager () 101keyboard_manager::~keyboard_manager ()
102{ 102{
103 hash [0] = 2;
104
105 for (unsigned int i = 0; i < keymap.size (); ++i) 103 for (unsigned int i = 0; i < keymap.size (); ++i)
106 { 104 {
107 free (keymap [i]->str); 105 free (keymap [i]->str);
108 delete keymap [i]; 106 delete keymap [i];
109 keymap [i] = 0;
110 } 107 }
111
112 keymap.clear ();
113} 108}
114 109
115// a wrapper for register_translation that converts the input string 110// a wrapper for register_translation that converts the input string
116// to utf-8 and expands 'list' syntax. 111// to utf-8 and expands 'list' syntax.
117void 112void

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines