diff options
author | David 'Digit' Turner <digit@google.com> | 2009-09-23 14:55:52 -0700 |
---|---|---|
committer | David 'Digit' Turner <digit@google.com> | 2009-09-23 14:55:52 -0700 |
commit | c3e6bb48bc36d7e1b95bff7c870b0842eb8a452e (patch) | |
tree | 683eca1d9ed840b1fb153bc9a39679415fb75c00 | |
parent | 52195e705c10ab94c2b842591bbd2fda60e13102 (diff) | |
download | external_qemu-c3e6bb48bc36d7e1b95bff7c870b0842eb8a452e.zip external_qemu-c3e6bb48bc36d7e1b95bff7c870b0842eb8a452e.tar.gz external_qemu-c3e6bb48bc36d7e1b95bff7c870b0842eb8a452e.tar.bz2 |
Fix emulator crash on exit, due to invalid free() call.
-rw-r--r-- | android/charmap.c | 11 | ||||
-rw-r--r-- | android/charmap.h | 3 |
2 files changed, 1 insertions, 13 deletions
diff --git a/android/charmap.c b/android/charmap.c index 23f65fa..a313312 100644 --- a/android/charmap.c +++ b/android/charmap.c @@ -263,7 +263,7 @@ static const AKeyCharmap _qwerty2_charmap = }; /* Custom character map created with -charmap option. */ -AKeyCharmap android_custom_charmap = { 0 }; +static AKeyCharmap android_custom_charmap = { 0 }; const AKeyCharmap** android_charmaps = 0; int android_charmap_count = 0; @@ -721,15 +721,6 @@ android_charmap_setup(const char* kcm_file_path) { void android_charmap_done(void) { if (NULL != android_charmaps) { - int n; - for (n = 0; n < android_charmap_count; n++) { - // Entries for qwerty and qwerty2 character maps are - // static entries defined in charmap.c - if ((&_qwerty_charmap != android_charmaps[n]->entries) && - (&_qwerty2_charmap != android_charmaps[n]->entries)) { - qemu_free((void*)android_charmaps[n]->entries); - } - } qemu_free(android_charmaps); } } diff --git a/android/charmap.h b/android/charmap.h index 7f1e959..3d34224 100644 --- a/android/charmap.h +++ b/android/charmap.h @@ -39,9 +39,6 @@ extern const AKeyCharmap** android_charmaps; /* Number of entries in android_charmaps array. */ extern int android_charmap_count; -/* Custom character map created with -charmap option. */ -extern AKeyCharmap android_custom_charmap; - /* Extracts charmap name from .kcm file name. * Charmap name, extracted by this routine is a name of the kcm file, trimmed * of file name extension, and shrinked (if necessary) to fit into the name |