diff options
Diffstat (limited to 'compat.c')
-rw-r--r-- | compat.c | 9 |
1 files changed, 3 insertions, 6 deletions
@@ -133,8 +133,7 @@ InitCompatInfo(CompatInfo * info, XkbDescPtr xkb) static void ClearCompatInfo(CompatInfo * info, XkbDescPtr xkb) { - if (info->name != NULL) - free(info->name); + free(info->name); info->name = NULL; info->dflt.defs.defined = 0; info->dflt.defs.merge = MergeAugment; @@ -425,8 +424,7 @@ HandleIncludeCompatMap(IncludeStmt * stmt, (*hndlr) (rtrn, xkb, MergeOverride, &included); if (stmt->stmt != NULL) { - if (included.name != NULL) - free(included.name); + free(included.name); included.name = stmt->stmt; stmt->stmt = NULL; } @@ -880,7 +878,6 @@ CompileCompatMap(XkbFile * file, ClearCompatInfo(&info, xkb); return True; } - if (info.interps != NULL) - free(info.interps); + free(info.interps); return False; } |