shortcut_catcher: memory leak fixes
memory allocated in get_key_map(..) wasn't released. CID 5696, CID 5697, CID 1699, CID 1700
This commit is contained in:
@@ -797,6 +797,8 @@ KeyStrokeSequenceCommandActuator::_GenerateKeyCodes()
|
|||||||
_SetStateBit(states, overrideKey);
|
_SetStateBit(states, overrideKey);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
free(keys);
|
||||||
|
free(map);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -11,6 +11,7 @@
|
|||||||
|
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
#include <stdlib.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <ctype.h>
|
#include <ctype.h>
|
||||||
|
|
||||||
@@ -151,6 +152,8 @@ InitKeyIndices()
|
|||||||
} else
|
} else
|
||||||
utfDescriptions[j * MAX_UTF8_LENGTH] = 0x00;
|
utfDescriptions[j * MAX_UTF8_LENGTH] = 0x00;
|
||||||
}
|
}
|
||||||
|
free(keys);
|
||||||
|
free(map);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user