xkbcomp/keymap: remove useless free()

Signed-off-by: Ran Benita <ran234@gmail.com>
master
Ran Benita 2014-10-18 19:22:56 +03:00
parent c43c3c866e
commit 96a29ede77
1 changed files with 1 additions and 3 deletions

View File

@ -257,10 +257,8 @@ CompileKeymap(XkbFile *file, struct xkb_keymap *keymap, enum merge_mode merge)
continue;
}
if (!file->topName) {
free(file->topName);
if (!file->topName)
file->topName = strdup(main_name);
}
files[file->file_type] = file;
}