From c6da7311b073b2b015dec2307ca393fc4fce23fa Mon Sep 17 00:00:00 2001 From: Mehmetali KURAN Date: Sat, 2 Nov 2013 18:45:06 +0000 Subject: [PATCH] [loc] hash functions improvements * Fix a leak when freeing the hash table (actual size is htab_size+1) * Use a better hash algorithm * Use a larger table with a size already set to a prime --- src/localization.c | 12 ++++++------ src/localization.h | 5 +++-- src/rufus.rc | 10 +++++----- 3 files changed, 14 insertions(+), 13 deletions(-) diff --git a/src/localization.c b/src/localization.c index ffec48cd..a7634d40 100644 --- a/src/localization.c +++ b/src/localization.c @@ -140,7 +140,7 @@ static void htab_destroy(void) return; } - for (i=0; i