Author: tfheen
Date: 2005-07-15 08:22:55 GMT
2005-07-15 Tollef Fog Heen <tfheen@err.no>
* pkg.c (package_get_var): Make sure to g_strdup all the return
values and not return some values which should not be freed and
some which should. Yay valgrind. Freedesktop #3682
2005-07-15 Tollef Fog Heen <tfheen@err.no>
+ * pkg.c (package_get_var): Make sure to g_strdup all the return
+ values and not return some values which should not be freed and
+ some which should. Yay valgrind. Freedesktop #3682
+
* configure.in: Fix default search path to be pkgconfig rather
than pkg-config again. Freedesktop #3662
char *varval = NULL;
if (globals)
- varval = g_hash_table_lookup (globals, var);
+ varval = g_strdup (g_hash_table_lookup (globals, var));
if (varval == NULL && pkg->vars)
varval = g_strdup (g_hash_table_lookup (pkg->vars, var));