...and at the same time, fix a malloc<>g_free mismatch.
Patch by Caolan McNamara, bug 611897
continue; /* Invalid line, ignore */
*colon = 0; /* terminate filename */
- file = strdup (line);
+ file = g_strdup (line);
colon++; /* after colon */
while (g_ascii_isspace (*colon))
colon++;
extension_points = g_strsplit (colon, ",", -1);
- g_hash_table_insert (cache, g_strdup (file), extension_points);
+ g_hash_table_insert (cache, file, extension_points);
}
g_strfreev (lines);
}