Fixed memory leak in icon loading

This commit is contained in:
o9000
2016-08-08 10:56:06 +02:00
parent 8b08930268
commit 2857b96c4d
3 changed files with 7 additions and 5 deletions

View File

@@ -86,6 +86,8 @@ void load_cache(Cache *cache, const gchar *cache_path)
if (parse_line(line, &key, &value)) {
g_hash_table_insert(cache->_table, g_strdup(key), g_strdup(value));
free(key);
free(value);
}
}
free(line);